skip acceptor if it's TileEntity is null, because the tile has unloaded (reported on discord)

This commit is contained in:
Thiakil committed 2019-05-06 19:51:18 +08:00
1 parent 4d497e23a5
commit 0a9c253f0f
1 file changed
+1 -1
@@ -42,7 +42,7 @@ public class InventoryNetwork extends DynamicNetwork<TileEntity, InventoryNetwor
EnumSet<EnumFacing> sides = acceptorDirections.get(coord);
TileEntity acceptor = coord.getTileEntity(getWorld());
if (sides == null || sides.isEmpty()) {
if (acceptor == null || sides == null || sides.isEmpty()) {
continue;
}