Functionality fixes

This commit is contained in:
Anuken
2019-12-26 19:48:45 -05:00
4 changed files with 11 additions and 4 deletions

View File

@@ -337,6 +337,7 @@ public class BuildBlock extends Block{
}
public void setDeconstruct(Block previous){
if(previous == null) return;
this.previous = previous;
this.progress = 1f;
if(previous.buildCost >= 0.01f){

View File

@@ -43,9 +43,9 @@ public class StaticWall extends Rock{
boolean eq(int rx, int ry){
return rx < world.width() - 1 && ry < world.height() - 1
&& world.tile(rx + 1, ry).block() == this
&& world.tile(rx, ry + 1).block() == this
&& world.tile(rx, ry).block() == this
&& world.tile(rx + 1, ry + 1).block() == this;
&& world.tile(rx + 1, ry).block() == this
&& world.tile(rx, ry + 1).block() == this
&& world.tile(rx, ry).block() == this
&& world.tile(rx + 1, ry + 1).block() == this;
}
}