From ce6d36a9a8fc9c62892e51744666c1346fcac153 Mon Sep 17 00:00:00 2001 From: Chicken-Bones Date: Thu, 26 Feb 2015 10:47:17 +1000 Subject: [PATCH] Call world.markBlockForUpdate on part change for compatiblity with other world caches --- src/codechicken/multipart/TileMultipart.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/codechicken/multipart/TileMultipart.scala b/src/codechicken/multipart/TileMultipart.scala index d277542..3a52f59 100644 --- a/src/codechicken/multipart/TileMultipart.scala +++ b/src/codechicken/multipart/TileMultipart.scala @@ -127,12 +127,13 @@ class TileMultipart extends TileEntity with IChunkLoadTile /** * Called by parts when they have changed in some form that affects the world. - * Notifies neighbor blocks, parts that share this host and recalculates lighting + * Notifies neighbor blocks, the world and parts that share this host and recalculates lighting */ def notifyPartChange(part:TMultiPart) { internalPartChange(part) - + + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord) worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, MultipartProxy.block) worldObj.func_147451_t(xCoord, yCoord, zCoord) }