Skip to content

Commit

Permalink
fix: /back not working on Fabric, close #713
Browse files Browse the repository at this point in the history
Also broke the command list (`/huskhomes help`)
  • Loading branch information
WiIIiam278 committed Nov 8, 2024
1 parent 6cfd480 commit 9d17faf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,9 @@ public Version getMinecraftVersion() {
}

@Override
public void registerCommands(@NotNull List<Command> commands) {
CommandRegistrationCallback.EVENT.register((dispatcher, ignored, ignored2) -> commands.forEach(
(command) -> new FabricCommand(command, this).register(dispatcher))
);
public void registerCommands(@NotNull List<Command> toRegister) {
CommandRegistrationCallback.EVENT.register((dispatcher, i1, i2) -> toRegister.stream().peek(commands::add)
.forEach((command) -> new FabricCommand(command, this).register(dispatcher)));
}

@Override
Expand Down

0 comments on commit 9d17faf

Please sign in to comment.