use of forestry.greenhouse.network.packets.PacketGreenhouseData in project ForestryMC by ForestryMC.
the class GreenhouseProviderServer method create.
public void create() {
if (ready) {
GreenhouseState oldState = this.state;
storage.removeProviderFromChunks();
storage.clearBlocks(false);
createBlocks();
storage.addProviderToChunks();
if (!world.isRemote) {
IClimateHousing region = container.getParent();
BlockPos pos = region.getCoordinates();
if (pos != null) {
needReload = oldState != state;
NetworkUtil.sendNetworkPacket(new PacketGreenhouseData(pos, this), pos, world);
}
}
}
}
Aggregations