From 32dcc8e7b40325b7d6030de34f8dd4e42f081084 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 17 Jul 2023 17:41:06 +0200 Subject: [PATCH] Hotfix die zweite Signed-off-by: yoyosource --- .../bausystem/features/script/lua/SteamWarLuaPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/lua/SteamWarLuaPlugin.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/lua/SteamWarLuaPlugin.java index c8e51070..99041520 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/lua/SteamWarLuaPlugin.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/lua/SteamWarLuaPlugin.java @@ -159,9 +159,9 @@ public class SteamWarLuaPlugin extends TwoArgFunction { public static String varArgsToString(Varargs args) { StringBuilder builder = new StringBuilder(); for (int i = 1; i <= args.narg(); i++) { + if (builder.length() != 0) builder.append(" "); LuaValue arg = args.arg(i); builder.append(arg.tojstring()); - builder.append(" "); } return builder.toString(); }