Update CustomScript and CustomScriptListener
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
b6b8d696ea
Commit
340beff8a5
@ -212,7 +212,7 @@ public class CustomScript {
|
||||
}
|
||||
|
||||
public boolean equals(MenuCommand menuCommand) {
|
||||
if (menuCommand.args.length != args.length) {
|
||||
if (menuCommand.args.length != args.length) {
|
||||
return false;
|
||||
}
|
||||
if (!args[0].equals(menuCommand.args[0])) {
|
||||
|
@ -226,7 +226,7 @@ public class CustomScriptListener implements Listener {
|
||||
continue;
|
||||
}
|
||||
if (((CustomScript.MenuCommand) script).equals(menuCommand)) {
|
||||
BauSystem.MESSAGE.sendPrefixless("SCRIPT_MENU_GUI_DUPLICATE_COMMAND", p, String.join(" ", menuCommand.args));
|
||||
BauSystem.MESSAGE.sendPrefixless("SCRIPT_MENU_GUI_DUPLICATE_COMMAND", p, String.join(" ", menuCommand.command()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren