Move flight enabled check to the command register event

This commit is contained in:
Sollace 2023-09-03 16:41:27 +01:00
parent f9182f851f
commit a57d1cf642
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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);
}
});
}
}