From 21f3b9047cd238d045df61c94866e3e62d74f2c9 Mon Sep 17 00:00:00 2001 From: Tobias Gremeyer Date: Thu, 25 Apr 2019 07:09:15 +0000 Subject: [PATCH] Made teleposers a bit more foolproof (#1592) Fixed an issue where a teleposer that somehow got filled with nasty items would crash on tick because the teleposer throws a fit at that nasty item. --- src/main/java/WayofTime/bloodmagic/tile/TileTeleposer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/bloodmagic/tile/TileTeleposer.java b/src/main/java/WayofTime/bloodmagic/tile/TileTeleposer.java index d3c7caf3..b9d665e8 100644 --- a/src/main/java/WayofTime/bloodmagic/tile/TileTeleposer.java +++ b/src/main/java/WayofTime/bloodmagic/tile/TileTeleposer.java @@ -49,7 +49,7 @@ public class TileTeleposer extends TileInventory implements ITickable { @Override public void update() { - if (!getWorld().isRemote) { + if (!getWorld().isRemote && canInitiateTeleport()) { int currentInput = getWorld().getStrongPower(pos); if (previousInput == 0 && currentInput != 0) {