mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 03:49:05 +00:00
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:
1 parent
3f1928aac1
commit
6a5336aef1
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user