Fix slew of bugfixes based on google play reports
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user