use of forestry.greenhouse.network.packets.PacketSelectClimateTargeted in project ForestryMC by ForestryMC.
the class GuiGreenhouse method sendNetworkUpdate.
public void sendNetworkUpdate() {
IClimateState climateState = container.getTargetedState();
if (climateState.isPresent()) {
BlockPos pos = controller.getCoordinates();
float temp = temperaturePanel.parseValue();
float hum = humidityPanel.parseValue();
setClimate(container, temp, hum);
NetworkUtil.sendToServer(new PacketSelectClimateTargeted(pos, container.getTargetedState()));
}
}
Aggregations