mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-07 22:16:44 +01:00
Move flight enabled check to the command register event
This commit is contained in:
parent
f9182f851f
commit
a57d1cf642
1 changed files with 4 additions and 4 deletions
|
@ -31,10 +31,10 @@ public class Commands {
|
|||
CastCommand.register(dispatcher, registries);
|
||||
TraitCommand.register(dispatcher);
|
||||
ManaCommand.register(dispatcher);
|
||||
});
|
||||
|
||||
if (FabricLoader.getInstance().getGameInstance() instanceof MinecraftServer server) {
|
||||
server.setFlightEnabled(true);
|
||||
}
|
||||
if (FabricLoader.getInstance().getGameInstance() instanceof MinecraftServer server) {
|
||||
server.setFlightEnabled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue