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:
parent
149ffffe8e
commit
96e08ab2ef
2 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue