From 219084fe3ce664702fd37e887784d0164e58363c Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 27 Feb 2023 08:26:26 -0800 Subject: [PATCH] Don't generate edges if edges already exist (#8338) --- core/src/mindustry/world/blocks/environment/Floor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/world/blocks/environment/Floor.java b/core/src/mindustry/world/blocks/environment/Floor.java index 843ef51f6b..56c7625f44 100644 --- a/core/src/mindustry/world/blocks/environment/Floor.java +++ b/core/src/mindustry/world/blocks/environment/Floor.java @@ -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);