Belt lighting safety check

This commit is contained in:
simibubi 2021-12-05 02:54:43 +01:00
parent 410dcd61ae
commit afed0ae586

View file

@ -558,6 +558,11 @@ public class BeltTileEntity extends KineticTileEntity implements ILightUpdateLis
GridAlignedBB beltVolume = getVolume(); GridAlignedBB beltVolume = getVolume();
if (beltVolume.intersects(changed)) { if (beltVolume.intersects(changed)) {
if (light == null) {
initializeLight();
return;
}
if (type == LightLayer.BLOCK) if (type == LightLayer.BLOCK)
updateBlockLight(); updateBlockLight();