avoid callbacks to parts transferred to another tile (#58)

This commit is contained in:
Pxx500 authored and GitHub committed 2026-09-12 20:06:49 +02:00
1 parent 2d050bdd08
commit 71340a23ef
1 file changed
+2 -1
@@ -78,7 +78,8 @@ class TileMultipart extends TileEntity with IChunkLoadTile {
val it = partList.iterator
while (it.hasNext) {
val p = it.next()
if (p.tile != null) f(p)
// A replaced tile can still receive queued callbacks after its parts have moved.
if (p.tile == this) f(p)
}
}