From afed0ae5865f698faf74e4df6f20890c65f74ff6 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sun, 5 Dec 2021 02:54:43 +0100 Subject: [PATCH] Belt lighting safety check --- .../content/contraptions/relays/belt/BeltTileEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltTileEntity.java index 0b730f387..5beee7a32 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltTileEntity.java @@ -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();