mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
fix: /back not working on Fabric, close #713
Also broke the command list (`/huskhomes help`)
This commit is contained in:
1 file changed
+3
-4
@@ -256,10 +256,9 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
|
||||
}
|
||||
|
||||
@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
|
||||
|
||||
Reference in new issue
Block a user