SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix If
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-03-14 18:23:52 +01:00
Ursprung 8e133f0832
Commit ca338699fa

Datei anzeigen

@ -46,7 +46,7 @@ public class If implements SpecialCommand {
BauSystem.MESSAGE.send("SCRIPT_COMMAND_ERROR_NO_BOOLEAN", scriptExecutor.getPlayer()); BauSystem.MESSAGE.send("SCRIPT_COMMAND_ERROR_NO_BOOLEAN", scriptExecutor.getPlayer());
return false; return false;
} }
if (v.asBoolean()) { if (v.asBoolean() && command.length > 2) {
jumpToIndex(scriptExecutor, command[2]); jumpToIndex(scriptExecutor, command[2]);
} else if (command.length > 3) { } else if (command.length > 3) {
jumpToIndex(scriptExecutor, command[3]); jumpToIndex(scriptExecutor, command[3]);