mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-25 14:34:45 +00:00
Call world.markBlockForUpdate on part change for compatiblity with other world caches
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user