Commit graph

4 commits

Author SHA1 Message Date
MrTheShy bcc8fe25ea updated as review requested 2026-03-11 23:22:13 +01:00
MrTheShy b941a27b90 fix: avoid full rebuild by writing BuildVer.h only when content changes
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.
2026-03-11 23:16:31 +01:00
Loki Rautio 0c4f459904 Always show version overlay, add more info 2026-03-09 03:25:05 -05:00
rtm516 9cac3e0394
Change F3 rendering and add git version information (#836)
* 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>
2026-03-07 13:55:44 -06:00