Call world.markBlockForUpdate on part change for compatiblity with other world caches

This commit is contained in:
Chicken-Bones committed 2015-02-26 10:47:38 +10:00
1 parent 14f4020d15
commit ce6d36a9a8
1 file changed
+3 -2
@@ -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)
}