Fixed black minimap color for metal walls

This commit is contained in:
Anuken
2025-08-25 10:59:39 -04:00
parent a73a30f2b9
commit 2bdf2f39f8
2 changed files with 11 additions and 4 deletions

View File

@@ -133,7 +133,12 @@ public enum EditorTool{
Block dest = tile.floor();
if(dest == editor.drawBlock) return;
tester = t -> t.floor() == dest;
setter = t -> t.setFloor(editor.drawBlock.asFloor());
setter = t -> {
t.setFloor(editor.drawBlock.asFloor());
if(!(t.overlay() instanceof OverlayFloor) && !t.floor().supportsOverlay){
t.setOverlay(Blocks.air);
}
};
}else{
Block dest = tile.block();
if(dest == editor.drawBlock) return;