From a73a45ce43c50f8814553dbdc47e59ec256f7a19 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 31 Aug 2019 16:30:51 +1000 Subject: [PATCH] Create parser context data for factory converter in non-user-mode --- .../com/sk89q/worldedit/command/argument/FactoryConverter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/FactoryConverter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/FactoryConverter.java index 8b5a56f0c..8e5b0d9e8 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/FactoryConverter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/FactoryConverter.java @@ -110,6 +110,9 @@ public class FactoryConverter implements ArgumentConverter { parserContext.setWorld((World) extent); } parserContext.setExtent(new RequestExtent()); + } else if (session.hasWorldOverride()) { + parserContext.setWorld(session.getWorldOverride()); + parserContext.setExtent(new RequestExtent()); } parserContext.setSession(session); parserContext.setRestricted(true);