Build check cleanup

This commit is contained in:
Anuken
2020-09-25 20:15:00 -04:00
parent c49b3124d5
commit ccdd94a090
4 changed files with 34 additions and 62 deletions

View File

@@ -58,7 +58,8 @@ public class Wall extends Block{
@Override
public boolean canReplace(Block other){
return (other != this || rotate) && this.group != BlockGroup.none && other.group == this.group && health > other.health && size >= other.size;
if(other.alwaysReplace) return true;
return (other != this || rotate) && this.group != BlockGroup.none && other.group == this.group && other != this && size >= other.size;
}
public class WallBuild extends Building{