From d5ddb476c53eaf7ffd03cb0cf4cb6b075be41691 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Thu, 26 Nov 2020 15:48:31 +0100 Subject: [PATCH] Belt casing hotfix --- .../create/content/contraptions/relays/belt/BeltTileEntity.java | 2 ++ 1 file changed, 2 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 d71bf0965..67342cebd 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 @@ -401,6 +401,8 @@ public class BeltTileEntity extends KineticTileEntity { if (nextBeltController == null) return inserted; BeltInventory nextInventory = nextBeltController.getInventory(); + if (nextInventory == null) + return inserted; TileEntity teAbove = world.getTileEntity(pos.up()); if (teAbove instanceof BrassTunnelTileEntity) {