Belt lighting safety check
This commit is contained in:
parent
410dcd61ae
commit
afed0ae586
1 changed files with 5 additions and 0 deletions
|
@ -558,6 +558,11 @@ public class BeltTileEntity extends KineticTileEntity implements ILightUpdateLis
|
|||
GridAlignedBB beltVolume = getVolume();
|
||||
|
||||
if (beltVolume.intersects(changed)) {
|
||||
if (light == null) {
|
||||
initializeLight();
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == LightLayer.BLOCK)
|
||||
updateBlockLight();
|
||||
|
||||
|
|
Loading…
Reference in a new issue