fangorn/huorn-minecraft
public
ref:d5c4a4d2c4818de06c262e80c9ed569d6deb3057
Fix two bugs found by GameTests
Bug 1: getUpdateTag() didn't include Cols/Rows/FontSize
- Block entity data wouldn't sync to clients on chunk load
- Override getUpdateTag() to call saveAdditional()
- Added test: updateTagIncludesFields verifies the fix
Bug 2: PTY read could block the game thread
- alacritty_terminal's PTY fd may not be non-blocking when
read() is called directly (bypassing mio)
- Set O_NONBLOCK explicitly before each read on Unix
- Prevents game tick freeze if shell produces no output
Both bugs were discovered by writing comprehensive tests that
exercised code paths the original tests didn't cover.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SHA:
d5c4a4d2c4818de06c262e80c9ed569d6deb3057
Author:
Cole Christensen <cole.christensen@macmillan.com>
Date:
2026-03-20 07:12
Parents:
9c5bdc1
3 files changed
+43
-1
| Type | ||
|---|---|---|
|
|
rust/src/terminal.rs | +16 −1 |
|
||