Create parser context data for factory converter in non-user-mode

This commit is contained in:
Matthew Miller 2019-08-31 16:30:51 +10:00
parent 299d703f24
commit a73a45ce43
No known key found for this signature in database
GPG Key ID: CBE2A93FE8F4F904

View File

@ -110,6 +110,9 @@ public class FactoryConverter<T> implements ArgumentConverter<T> {
parserContext.setWorld((World) extent); parserContext.setWorld((World) extent);
} }
parserContext.setExtent(new RequestExtent()); parserContext.setExtent(new RequestExtent());
} else if (session.hasWorldOverride()) {
parserContext.setWorld(session.getWorldOverride());
parserContext.setExtent(new RequestExtent());
} }
parserContext.setSession(session); parserContext.setSession(session);
parserContext.setRestricted(true); parserContext.setRestricted(true);