mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:45:10 +01:00
Belt lighting safety check
This commit is contained in:
parent
410dcd61ae
commit
afed0ae586
@ -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 New Issue
Block a user