Fix slew of bugfixes based on google play reports

This commit is contained in:
Anuken
2017-12-13 00:09:44 -05:00
parent 36cec3ccb7
commit 940d4b3980
8 changed files with 27 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ public class Player extends DestructibleEntity{
@Override
public void damage(int amount){
if(!Vars.debug)
if(!Vars.debug && !Vars.android)
super.damage(amount);
}

View File

@@ -65,6 +65,7 @@ public class TileEntity extends Entity{
block.onDestroyed(tile);
Vars.world.removeBlock(tile);
remove();
}
public void collision(Bullet other){
@@ -91,6 +92,10 @@ public class TileEntity extends Entity{
Effects.effect(Fx.smoke, x+Mathf.range(4), y+Mathf.range(4));
}
if(health <= 0){
onDeath();
}
tile.block().update(tile);
}