mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-22 05:02:32 +00:00
avoid callbacks to parts transferred to another tile (#58)
This commit is contained in:
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user