diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 071720a..699fcd3 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -109,8 +109,13 @@ public class ScriptListener implements Listener { return; } + int executionPoints = 0; + while (index < commands.size()) { String command = commands.get(index++); + if (executionPoints++ > 200) { + return; + } String firstArg = command; if (command.contains(" ")) {