mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
More efficient transporter tree searching
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user