Fixed minor TPS display / block breakage bugs

This commit is contained in:
Anuken
2018-10-12 22:41:48 -04:00
parent 7dc0a7a5c3
commit c0e3a1f3ef
2 changed files with 4 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ public class ThreadHandler{
} }
public int getTPS(){ public int getTPS(){
if(smoothDelta == 0f){
return 60;
}
return (int) (60 / smoothDelta); return (int) (60 / smoothDelta);
} }

View File

@@ -215,6 +215,6 @@ public class Build{
Tile tile = world.tile(x, y); Tile tile = world.tile(x, y);
if(tile != null) tile = tile.target(); if(tile != null) tile = tile.target();
return tile != null && tile.block().canBreak(tile) && tile.breakable() && (tile.getTeam() == Team.none || tile.getTeam() == team); return tile != null && tile.block().canBreak(tile) && tile.breakable() && (!tile.block().synthetic() || tile.getTeam() == team);
} }
} }