In-game block team display / Editor bugfix

This commit is contained in:
Anuken
2019-01-22 15:46:22 -05:00
parent 6229f99a2e
commit 5459a646b3
9 changed files with 19 additions and 12 deletions

View File

@@ -163,8 +163,13 @@ public class BlockRenderer{
if(req.layer == Layer.shadow){
block.drawShadow(req.tile);
}else if(req.layer == Layer.block){
}else if(req.layer == Layer.block){
block.draw(req.tile);
if(block.synthetic() && req.tile.getTeam() != players[0].getTeam()){
Draw.color(req.tile.getTeam().color);
Draw.rect("block-border", req.tile.drawx() - block.size * tilesize/2f + 4, req.tile.drawy() - block.size * tilesize/2f + 4);
Draw.color();
}
}else if(req.layer == block.layer){
block.drawLayer(req.tile);
}else if(req.layer == block.layer2){