Made linking work
This commit is contained in:
parent
dc9cf65660
commit
b727502276
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue