mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +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);
|
CastCommand.register(dispatcher, registries);
|
||||||
TraitCommand.register(dispatcher);
|
TraitCommand.register(dispatcher);
|
||||||
ManaCommand.register(dispatcher);
|
ManaCommand.register(dispatcher);
|
||||||
});
|
|
||||||
|
|
||||||
if (FabricLoader.getInstance().getGameInstance() instanceof MinecraftServer server) {
|
if (FabricLoader.getInstance().getGameInstance() instanceof MinecraftServer server) {
|
||||||
server.setFlightEnabled(true);
|
server.setFlightEnabled(true);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue