Proper pathfinding fixes

This commit is contained in:
Anuken
2022-02-17 15:15:51 -05:00
parent ba475b681c
commit 49a39d42e7
5 changed files with 65 additions and 10 deletions

View File

@@ -253,6 +253,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{
if(other != null){
if(pass == 0){
//first pass: delete existing blocks - this should automatically trigger removal if overlap exists
//TODO pointless setting air to air?
other.setBlock(Blocks.air);
}else{
//second pass: assign changed data