Added unit type unlocking / Fixed viewing of enemy block stats

This commit is contained in:
Anuken
2018-07-24 09:08:35 -04:00
parent 7e187a57d8
commit 9bc1ff8fa2
6 changed files with 15 additions and 17 deletions

View File

@@ -65,7 +65,7 @@ public class OverlayRenderer{
Vector2 vec = Graphics.world(input.getMouseX(), input.getMouseY());
Tile tile = world.tileWorld(vec.x, vec.y);
if(tile != null && tile.block() != Blocks.air){
if(tile != null && tile.block() != Blocks.air && tile.getTeam() == players[0].getTeam()){
Tile target = tile.target();
if(showBlockDebug && target.entity != null){