mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Add an climate pillar on the left side of the greenhouse gui
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user