From df62267614ff186660e86f3d2ed65b055b6bfe98 Mon Sep 17 00:00:00 2001 From: Chicken Bones Date: Wed, 18 Sep 2013 09:39:07 +1000 Subject: [PATCH] Removed neighbor change events on tile hotswap. --- codechicken/multipart/MultipartGenerator.scala | 2 -- codechicken/multipart/TileMultipart.scala | 3 --- 2 files changed, 5 deletions(-) diff --git a/codechicken/multipart/MultipartGenerator.scala b/codechicken/multipart/MultipartGenerator.scala index 5764f48..7527ff6 100644 --- a/codechicken/multipart/MultipartGenerator.scala +++ b/codechicken/multipart/MultipartGenerator.scala @@ -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 diff --git a/codechicken/multipart/TileMultipart.scala b/codechicken/multipart/TileMultipart.scala index 6fb8401..5b5c2ba 100644 --- a/codechicken/multipart/TileMultipart.scala +++ b/codechicken/multipart/TileMultipart.scala @@ -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]()