mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
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();
|
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue