fangorn/huorn-minecraft
public
ref:c55db3488c3f770d56515ca4d41b37cb43387983
Fix multi-block on client: lazy group detection in clientTick
Root cause: Block.onPlace() only fires on the server side in MC 1.20.1.
The client-side block entities never knew about the group because
rescanGroup() was only called from onPlace.
Fix: clientTick now does lazy group detection — every 10 ticks for the
first 3 seconds, each block rescans for neighboring terminal blocks.
This discovers groups on the client where rendering happens.
Also resets the scan flag when rescanGroup() is called explicitly
(e.g., from server-side onPlace neighbor propagation), so the client
re-evaluates when the world state changes.
35 GameTests + 52 Rust + visual test (2/2), all passing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SHA:
c55db3488c3f770d56515ca4d41b37cb43387983
Author:
Cole Christensen <cole.christensen@macmillan.com>
Date:
2026-03-20 13:59
Parents:
734948a
2 files changed
+36
-4
| Type | ||
|---|---|---|
|
|
common/src/main/java/io/fangorn/alacrittymc/block/TerminalBlock.java | +15 −4 |
|
||
|
|
common/src/main/java/io/fangorn/alacrittymc/block/TerminalBlockEntity.java | +21 −0 |
|
||