Use apache library

This commit is contained in:
aidancbrady 2016-01-19 14:41:05 -05:00
parent 1540cd2230
commit bfd32a1c3e
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import com.mojang.realmsclient.util.Pair; import org.apache.commons.lang3.tuple.Pair;
public final class TransporterPathfinder public final class TransporterPathfinder
{ {

View file

@ -18,7 +18,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import com.mojang.realmsclient.util.Pair; import org.apache.commons.lang3.tuple.Pair;
public class TransporterStack public class TransporterStack
{ {
@ -220,12 +220,12 @@ public class TransporterStack
return false; return false;
} }
if(newPath.second() == Path.HOME) if(newPath.getRight() == Path.HOME)
{ {
idleDir = ForgeDirection.UNKNOWN; idleDir = ForgeDirection.UNKNOWN;
} }
setPath(newPath.first(), newPath.second()); setPath(newPath.getLeft(), newPath.getRight());
originalLocation = transporter.coord(); originalLocation = transporter.coord();
initiatedPath = true; initiatedPath = true;