Implemented catching of settings flush exception

This commit is contained in:
Anuken
2017-10-08 19:44:38 -04:00
parent 60a13742cd
commit 0decc18d76
6 changed files with 26 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ public class AndroidInput extends InputAdapter{
}
Effects.effect("break", tile.worldx(), tile.worldy());
Effects.shake(3f, 1f);
Effects.shake(3f, 1f, player);
tile.setBlock(Blocks.air);
player.breaktime = 0f;
Sounds.play("break");
@@ -91,7 +91,7 @@ public class AndroidInput extends InputAdapter{
tile.rotation = (byte)player.rotation;
Effects.effect("place", tilex*tilesize, tiley*tilesize);
Effects.shake(2f, 2f);
Effects.shake(2f, 2f, player);
Sounds.play("place");
for(ItemStack stack : player.recipe.requirements){

View File

@@ -61,7 +61,7 @@ public class Input{
tile.rotation = (byte)player.rotation;
Effects.effect("place", World.roundx(), World.roundy());
Effects.shake(2f, 2f);
Effects.shake(2f, 2f, player);
Sounds.play("place");
for(ItemStack stack : player.recipe.requirements){
@@ -91,7 +91,7 @@ public class Input{
}
Effects.effect("break", tile.worldx(), tile.worldy());
Effects.shake(3f, 1f);
Effects.shake(3f, 1f, player);
tile.setBlock(Blocks.air);
player.breaktime = 0f;
Sounds.play("break");