More efficient transporter tree searching

This commit is contained in:
aidancbrady committed 2016-01-11 20:45:13 -05:00
1 parent b6306d0779
commit 72193075ab
5 files changed
+58 -29

No files matched your search

@@ -12,7 +12,6 @@ import mekanism.common.base.ITransporterTile;
import mekanism.common.content.transporter.TransporterManager;
import mekanism.common.content.transporter.TransporterStack;
import mekanism.common.tile.TileEntityLogisticalSorter;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory;
@@ -198,7 +197,7 @@ public final class TransporterUtils
{
float[] pos;
if(stack.pathToTarget != null)
if(stack.hasPath())
{
pos = TransporterUtils.getStackPosition(tileEntity, stack, 0);
}