From 1cf75f37422f695822a5e5aa5fd9ad85eaee92f9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 17 Jan 2023 18:27:29 +0100 Subject: [PATCH] Hotfix AbstractSWCommand --- src/de/steamwar/command/AbstractSWCommand.java | 2 +- src/de/steamwar/sql/SchematicNode.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/command/AbstractSWCommand.java b/src/de/steamwar/command/AbstractSWCommand.java index bf65ec8..ef0ccf1 100644 --- a/src/de/steamwar/command/AbstractSWCommand.java +++ b/src/de/steamwar/command/AbstractSWCommand.java @@ -95,7 +95,7 @@ public abstract class AbstractSWCommand { list.add(arg); } if (quote) { - commandSystemWarning(() -> "Missing closing quote in command"); + builder.append("\""); } if (builder.length() > 0) { list.add(builder.toString()); diff --git a/src/de/steamwar/sql/SchematicNode.java b/src/de/steamwar/sql/SchematicNode.java index 2709399..ed9ca39 100644 --- a/src/de/steamwar/sql/SchematicNode.java +++ b/src/de/steamwar/sql/SchematicNode.java @@ -140,7 +140,7 @@ public class SchematicNode { } public static List accessibleByUserType(SteamwarUser user, SchematicType type) { - return accessibleByUserType.listSelect(type, user); + return accessibleByUserType.listSelect(user, type); } public static Map> accessibleByUserTypeMap(SteamwarUser user, SchematicType type) {