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.
This commit is contained in:
parent
73d2459c6c
commit
21f3b9047c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue