Fix a server bug

This commit is contained in:
Nedelosk committed 2016-04-01 01:05:01 +02:00
1 parent a401995e7e
commit f6daefe255
1 file changed
+5 -3
@@ -260,9 +260,11 @@ public abstract class BlockAlveary extends BlockStructure implements IStateMappe
TileAlveary tileAlveary = (TileAlveary) tileEntity;
// We must check that the slabs on top were not removed
IAlvearyControllerInternal alvery = tileAlveary.getMultiblockLogic().getController();
alvery.reassemble();
Proxies.net.sendNetworkPacket(new PacketAlveryChange(alvery), world);
IAlvearyControllerInternal alveary = tileAlveary.getMultiblockLogic().getController();
alveary.reassemble();
if(alveary.getReferenceCoord() != null){
Proxies.net.sendNetworkPacket(new PacketAlveryChange(alveary), world);
}
}
}
}