Fix spam of Null Pointers

This commit is contained in:
Richard Freimer authored and Dave Smith committed 2019-03-07 22:19:16 -07:00
1 parent 937bb92f23
commit 7902163645
1 file changed
+1 -1
@@ -380,7 +380,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
recalculateUpgradables(upgrade);
}
if (world.isRemote) {
if (hasWorld() && world.isRemote) {
setSoundEvent(type.getSound());
}
}