Fixed override issue
This commit is contained in:
@@ -133,9 +133,10 @@ public class Pathfinder implements Runnable{
|
||||
break;
|
||||
}
|
||||
}
|
||||
int arr = other.array();
|
||||
//the other tile is no longer near solid, remove the solid bit
|
||||
if(!otherNearSolid && tiles.length > other.array()){
|
||||
tiles[other.array()] &= ~(PathTile.bitMaskNearSolid);
|
||||
if(!otherNearSolid && tiles.length > arr){
|
||||
tiles[arr] &= ~(PathTile.bitMaskNearSolid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@ public class EditorTile extends Tile{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBlock(Block type, Team team, int rotation){
|
||||
public void setBlock(Block type, Team team, int rotation, Prov<Building> entityprov){
|
||||
if(skip()){
|
||||
super.setBlock(type, team, rotation);
|
||||
super.setBlock(type, team, rotation, entityprov);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class EditorTile extends Tile{
|
||||
|
||||
}
|
||||
|
||||
super.setBlock(type, team, rotation);
|
||||
super.setBlock(type, team, rotation, entityprov);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user