use of com.lowdragmc.multiblocked.network.s2c.SPacketRemoveDisabledRendering in project Multiblocked by Low-Drag-MC.
the class MultiblockState method onBlockStateChanged.
public void onBlockStateChanged(BlockPos pos) {
if (pos.equals(controllerPos)) {
if (this.getMatchContext().containsKey("renderMask")) {
MultiblockedNetworking.sendToAll(new SPacketRemoveDisabledRendering(controllerPos));
}
if (lastController != null) {
lastController.onStructureInvalid();
}
MultiblockWorldSavedData mbds = MultiblockWorldSavedData.getOrCreate(world);
mbds.removeMapping(this);
mbds.removeLoading(controllerPos);
} else if (error != UNLOAD_ERROR) {
ControllerTileEntity controller = getController();
if (controller != null && !controller.checkPattern()) {
controller.onStructureInvalid();
MultiblockWorldSavedData.getOrCreate(world).removeMapping(this);
}
}
}
Aggregations