From dbe965e901131d3aa396514b8a437a1e665d38b6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 24 Jun 2016 15:41:27 +1000 Subject: [PATCH 1/2] init script engine on get --- .../java/com/intellectualcrafters/plot/commands/DebugExec.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java index c5be5cb29..8ddd4a64d 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java @@ -84,6 +84,9 @@ public class DebugExec extends SubCommand { } public ScriptEngine getEngine() { + if (this.engine == null) { + init(); + } return this.engine; } From a49492aae3d74e0634c7d35888ada8d96dd39ec6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 24 Jun 2016 16:16:22 +1000 Subject: [PATCH 2/2] Fix roadregen --- .../com/intellectualcrafters/plot/generator/HybridUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridUtils.java b/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridUtils.java index ecb6b5b1d..456129214 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridUtils.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridUtils.java @@ -447,10 +447,10 @@ public abstract class HybridUtils { } } } + queue.enqueue(); return true; } } - queue.enqueue(); return false; } }