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(); }