SteamWar/BauSystem2.0
Archiviert
12
0

Fix MaterialCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-08-08 18:15:59 +02:00
Ursprung 5703194017
Commit 2edc08943a

Datei anzeigen

@ -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;
}
}
}