Don't generate edges if edges already exist (#8338)

This commit is contained in:
MEEPofFaith
2023-02-27 08:26:26 -08:00
committed by GitHub
parent 4f314afe21
commit 219084fe3c

View File

@@ -161,6 +161,8 @@ public class Floor extends Block{
return;
}
if(Core.atlas.has(name + "-edge")) return;
var image = Core.atlas.getPixmap(icons()[0]);
var edge = Core.atlas.getPixmap(Core.atlas.find(name + "-edge-stencil", "edge-stencil"));
Pixmap result = new Pixmap(edge.width, edge.height);