Previously, prebuild.ps1 unconditionally overwrote BuildVer.h on every
build using Set-Content, updating its timestamp even when the content
was identical. This caused MSBuild to treat all files depending on
BuildVer.h as out of date, triggering a full rebuild every time.
Fix: compare the new content with the existing file before writing.
BuildVer.h is now only written if sha, branch, or dev suffix has
actually changed.
Also removed the `git restore` call from postbuild.ps1 as it is no
longer needed.
* Change F3 rendering and add git version information
* Change position, block, chunk and facing
* Limit position decimal places
* Move LCE unique to the bottom and add more java features
* Fix chunk information disappearing after y256
* Add chunk count information
* Move build number script to prebuild.ps1
* We dont need to specify vector and wstring are from std
* Restore build number to fix multiplayer
* Use short symbolic-ref
* Restore original BuildVer.h
---------
Co-authored-by: Loki <lokio.casebstv@gmail.com>
Co-authored-by: Loki Rautio <lokirautio@gmail.com>