Add an climate pillar on the left side of the greenhouse gui

This commit is contained in:
Nedelosk committed 2016-12-25 15:54:41 +01:00
1 parent d4f9c69538
commit 5bd4ba3cd5
10 files changed
+173 -20

No files matched your search

@@ -275,6 +275,14 @@ public class GreenhouseController extends RectangularMultiblockControllerBase im
return false;
}
if (sendClientUpdate && world.isRemote) {
for (IMultiblockComponent comp : connectedParts) {
if (comp instanceof ICamouflagedTile) {
ICamouflagedTile camBlock = (ICamouflagedTile) comp;
if (camBlock.getCamouflageType().equals(type)) {
world.markBlockRangeForRenderUpdate(camBlock.getCoordinates(), camBlock.getCoordinates());
}
}
}
Proxies.net.sendToServer(new PacketCamouflageSelectServer(this, type, CamouflageSelectionType.MULTIBLOCK));
}
MinecraftForge.EVENT_BUS.post(new CamouflageChangeEvent(this, null, this, type));