Swap out the tile if necessary before notifying adjacent blocks; helps the adjacent blocks to not crash the game by trying to call methods of removed interfaces.

This commit is contained in:
Ben Spiers committed 2013-09-26 20:18:27 +01:00
1 parent 3f1928aac1
commit 6a5336aef1
1 file changed
+2 -1
+2 -1
View File
@@ -361,10 +361,11 @@ class TileMultipart extends TileEntity
if(!isInvalid)
{
val tile = MultipartGenerator.partRemoved(this, part)
notifyPartChange(part)
markDirty()
markRender()
return MultipartGenerator.partRemoved(this, part)
return tile
}
return null