From b21c0f4553f9a657310c0d6ed517deb223869160 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 26 May 2023 14:12:34 -0400 Subject: [PATCH] Fixed squished logic icons --- core/src/mindustry/world/blocks/logic/LogicDisplay.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/logic/LogicDisplay.java b/core/src/mindustry/world/blocks/logic/LogicDisplay.java index 888ebf5b62..192bd67801 100644 --- a/core/src/mindustry/world/blocks/logic/LogicDisplay.java +++ b/core/src/mindustry/world/blocks/logic/LogicDisplay.java @@ -98,7 +98,10 @@ public class LogicDisplay extends Block{ case commandTriangle -> Fill.tri(x, y, p1, p2, p3, p4); case commandColor -> Draw.color(this.color = Color.toFloatBits(x, y, p1, p2)); case commandStroke -> Lines.stroke(this.stroke = x); - case commandImage -> Draw.rect(Fonts.logicIcon(p1), x, y, p2, p2, p3); + case commandImage -> { + var icon = Fonts.logicIcon(p1); + Draw.rect(Fonts.logicIcon(p1), x, y, p2, p2 / icon.ratio(), p3); + } } }