diff options
Diffstat (limited to 'nms-patches/CustomFunction.patch')
-rw-r--r-- | nms-patches/CustomFunction.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nms-patches/CustomFunction.patch b/nms-patches/CustomFunction.patch index 034c3546..b457151c 100644 --- a/nms-patches/CustomFunction.patch +++ b/nms-patches/CustomFunction.patch @@ -9,3 +9,19 @@ if (parseresults.getReader().canRead()) { if (parseresults.getExceptions().size() == 1) { +@@ -142,7 +142,14 @@ + } + + public void a(CustomFunctionData customfunctiondata, CommandListenerWrapper commandlistenerwrapper, ArrayDeque<CustomFunctionData.a> arraydeque, int i) throws CommandSyntaxException { +- customfunctiondata.d().execute(new ParseResults(this.a.getContext().withSource(commandlistenerwrapper), this.a.getReader(), this.a.getExceptions())); ++ // CraftBukkit start ++ org.bukkit.craftbukkit.command.VanillaCommandWrapper.WorldRescueContext rescue = new org.bukkit.craftbukkit.command.VanillaCommandWrapper.WorldRescueContext().start(commandlistenerwrapper.getWorld()); ++ try { ++ customfunctiondata.d().execute(new ParseResults(this.a.getContext().withSource(commandlistenerwrapper), this.a.getReader(), this.a.getExceptions())); ++ } finally { ++ rescue.end(); ++ } ++ // CraftBukkit end + } + + public String toString() { |