Skip to content

Commit

Permalink
fix: NPE on startup due to compat check, close #384
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Sep 29, 2024
1 parent 4d26b24 commit a5efeec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ public void onInitializeServer() {
this.disabling = false;
this.gson = createGson();

// Check compatibility
checkCompatibility();

// Load settings and locales
initialize("plugin config & locale files", (plugin) -> {
loadSettings();
Expand All @@ -147,6 +144,9 @@ private void onEnable() {
// Initial plugin setup
this.audiences = FabricServerAudiences.of(minecraftServer);

// Check compatibility
checkCompatibility();

// Prepare data adapter
initialize("data adapter", (plugin) -> {
if (getSettings().getSynchronization().isCompressData()) {
Expand Down

0 comments on commit a5efeec

Please sign in to comment.