Closes Anuken/Mindustry-Suggestions/issues/5742

This commit is contained in:
Anuken
2025-07-22 11:41:15 -04:00
parent fdae9a14fe
commit 17a5b2f387
5 changed files with 65 additions and 56 deletions

View File

@@ -10,6 +10,7 @@ import arc.util.*;
import mindustry.content.*;
import mindustry.graphics.*;
import mindustry.world.*;
import mindustry.world.blocks.environment.*;
import static mindustry.Vars.*;
@@ -36,6 +37,16 @@ public class EditorRenderer implements Disposable{
packWidth = width * tilesize + packPad * 2;
packHeight = height * tilesize + packPad * 2;
//clear darkness
for(int x = 0; x < width; x++){
for(int y = 0; y < height; y++){
Tile tile = world.tile(x, y);
if(tile.block() instanceof StaticWall){
tile.data = 0;
}
}
}
recache();
}