fabric: register forwards mapper with the BrigadierManager

fixes CommandSourceStack#getServer being null during permission checks for arguments with custom suggestions
This commit is contained in:
jmp 2021-02-05 18:05:21 -08:00 committed by Jason
parent 149ffffe8e
commit 96e08ab2ef
2 changed files with 2 additions and 1 deletions

View file

@ -154,6 +154,7 @@ public abstract class FabricCommandManager<C, S extends CommandSource> extends C
this
));
this.brigadierManager.backwardsBrigadierSenderMapper(this.backwardsCommandSourceMapper);
this.brigadierManager.brigadierSenderMapper(this.commandSourceMapper);
this.registerNativeBrigadierMappings(this.brigadierManager);
this.setCaptionRegistry(new FabricCaptionRegistry<>());
this.registerCommandPreProcessor(new FabricCommandPreprocessor<>(this));