Made linking work

This commit is contained in:
Calclavia 2013-08-04 11:33:42 -04:00
parent dc9cf65660
commit b727502276
2 changed files with 3 additions and 1 deletions

View file

@ -47,6 +47,8 @@ public class BlockEMContractor extends BlockBase implements ITileEntityProvider
if (linkVec.getTileEntity(world) instanceof TileEntityEMContractor)
{
contractor.setLink((TileEntityEMContractor) linkVec.getTileEntity(world));
entityPlayer.addChatMessage("Linked " + this.getLocalizedName() + " with " + " [" + (int) linkVec.x + ", " + (int) linkVec.y + ", " + (int) linkVec.z + "]");
return true;
}
}

View file

@ -114,7 +114,7 @@ public class Pathfinder
if (naviMap.containsKey(currentNode))
{
path.addAll(this.reconstructPath(naviMap, currentNode));
path.addAll(this.reconstructPath(naviMap, naviMap.get(currentNode)));
}
return path;