Fix null tile warnings from logistical sorters not connected to things on both sides when set to auto.
@@ -88,6 +88,8 @@ public class TileEntityLogisticalSorter extends TileEntityEffectsBlock implement
if (MekanismUtils.canFunction(this) && delayTicks == 0) {
TileEntity back = Coord4D.get(this).offset(facing.getOpposite()).getTileEntity(world);
TileEntity front = Coord4D.get(this).offset(facing).getTileEntity(world);
+ //If there is no tile to pull from or the push to, skip doing any checks
+ if (back != null && front != null) {
boolean sentItems = false;
int min = 0;
@@ -129,6 +131,7 @@ public class TileEntityLogisticalSorter extends TileEntityEffectsBlock implement
setActive(true);
}
}
+ }
delayTicks = 10;
}
