Colored floor tile

This commit is contained in:
Anuken
2025-07-12 18:16:26 -04:00
parent 0939076b4d
commit e53201347f
8 changed files with 74 additions and 11 deletions

View File

@@ -360,6 +360,7 @@ public class MinimapRenderer{
if(tile == null) return 0;
Block real = realBlock(tile);
int bc = real.minimapColor(tile);
if(bc == 0 && tile.block() == Blocks.air && tile.overlay() == Blocks.air) bc = tile.floor().minimapColor(tile);
Color color = Tmp.c1.set(bc == 0 ? MapIO.colorFor(real, tile.floor(), tile.overlay(), tile.team()) : bc);
color.mul(1f - Mathf.clamp(world.getDarkness(tile.x, tile.y) / 4f));