From 2edc08943aad8384bfb8f277bfe791d7fffec22c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 8 Aug 2022 18:15:59 +0200 Subject: [PATCH] Fix MaterialCommand Signed-off-by: yoyosource --- .../steamwar/bausystem/features/util/MaterialCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/MaterialCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/MaterialCommand.java index 31a30017..42d606b2 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/MaterialCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/MaterialCommand.java @@ -163,16 +163,16 @@ public class MaterialCommand extends SWCommand implements Listener { string = string.replace(",", "."); if (string.startsWith("=")) { if (blastResistance != Double.parseDouble(string.substring(1))) return false; + } else if (string.startsWith(">=")) { + if (blastResistance < Double.parseDouble(string.substring(2))) return false; + } else if (string.startsWith("<=")) { + if (blastResistance > Double.parseDouble(string.substring(2)))return false; } else if (string.startsWith(">")) { if (blastResistance <= Double.parseDouble(string.substring(1))) return false; } else if (string.startsWith("<")) { if (blastResistance >= Double.parseDouble(string.substring(1))) return false; } else if (string.startsWith("!")) { if (blastResistance == Double.parseDouble(string.substring(1))) return false; - } else if (string.startsWith(">=")) { - if (blastResistance < Double.parseDouble(string.substring(2))) return false; - } else if (string.startsWith("<=")) { - if (blastResistance > Double.parseDouble(string.substring(2)))return false; } } }