From 66b4c79f3826122c9a75837471d841c32d29c2cb Mon Sep 17 00:00:00 2001 From: JeanJPNM <61994401+JeanJPNM@users.noreply.github.com> Date: Tue, 4 Feb 2025 15:58:44 -0300 Subject: [PATCH] fix spawnwave ui when natural is a variable (#10307) Previously you couldn't set the x and y parameters of the spawnwave instruction if the value for the "natural" parameter was not exactly "false", now you can set them with "false" and any other variable name, except "true". --- core/src/mindustry/logic/LStatements.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/logic/LStatements.java b/core/src/mindustry/logic/LStatements.java index bae410c9a6..1daafcdb45 100644 --- a/core/src/mindustry/logic/LStatements.java +++ b/core/src/mindustry/logic/LStatements.java @@ -1493,11 +1493,11 @@ public class LStatements{ table.add("natural "); fields(table, natural, str -> natural = str); - table.add("x ").visible(() -> natural.equals("false")); - fields(table, x, str -> x = str).visible(() -> natural.equals("false")); + table.add("x ").visible(() -> !natural.equals("true")); + fields(table, x, str -> x = str).visible(() -> !natural.equals("true")); - table.add(" y ").visible(() -> natural.equals("false")); - fields(table, y, str -> y = str).visible(() -> natural.equals("false")); + table.add(" y ").visible(() -> !natural.equals("true")); + fields(table, y, str -> y = str).visible(() -> !natural.equals("true")); } @Override