mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
fabric: We actually remove all existing commands matching ours; they are configurable so this should be fine.
This commit is contained in:
1 file changed
+1
-1
@@ -79,7 +79,7 @@ public final class CarbonChatFabricModule extends AbstractModule {
|
||||
final Provider<CarbonChatFabric> carbonChat,
|
||||
final CarbonMessages carbonMessages
|
||||
) {
|
||||
// Remove vanilla commands matching our commands or aliases
|
||||
// Remove existing commands matching our commands or aliases
|
||||
CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> {
|
||||
final Map<Key, CommandSettings> settings = carbonChat.get().injector().getInstance(ConfigManager.class).loadCommandSettings();
|
||||
final Iterator<CommandNode<CommandSourceStack>> it = dispatcher.getRoot().getChildren().iterator();
|
||||
|
||||
Reference in new issue
Block a user