Removed neighbor change events on tile hotswap.

This commit is contained in:
Chicken Bones committed 2013-09-18 09:39:07 +10:00
1 parent e7f580105e
commit df62267614
2 files changed
-5

No files matched your search

@@ -69,7 +69,6 @@ object MultipartGenerator
PacketCustom.sendToChunk(new Packet53BlockChange(pos.x, pos.y, pos.z, world), world, pos.x>>4, pos.z>>4)
ntile.partList(0).onConverted()
ntile.writeAddPart(ntile.partList(0))
world.notifyBlocksOfNeighborChange(pos.x, pos.y, pos.z, MultipartProxy.block.blockID)
}
val tileTraits = tileTraitMap(tile.getClass)
@@ -87,7 +86,6 @@ object MultipartGenerator
world.setBlock(pos.x, pos.y, pos.z, MultipartProxy.block.blockID, 0, 0)
ntile = factory.generateTile(partTraits, world.isRemote)
world.setBlockTileEntity(pos.x, pos.y, pos.z, ntile)
world.notifyBlocksOfNeighborChange(pos.x, pos.y, pos.z, MultipartProxy.block.blockID)
}
ntile.addPart_impl(part)
return ntile
@@ -699,9 +699,6 @@ object TileMultipart
def createFromNBT(tag:NBTTagCompound):TileMultipart =
{
val superID = tag.getString("superID")
//val superClass = TileEntity.nameToClassMap.get(superID)
val partList = tag.getTagList("parts")
val parts = ListBuffer[TMultiPart]()