mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
fix: NPE on startup due to compat check, close #384
This commit is contained in:
@@ -120,9 +120,6 @@ public class FabricHuskSync implements DedicatedServerModInitializer, HuskSync,
|
||||
this.disabling = false;
|
||||
this.gson = createGson();
|
||||
|
||||
// Check compatibility
|
||||
checkCompatibility();
|
||||
|
||||
// Load settings and locales
|
||||
initialize("plugin config & locale files", (plugin) -> {
|
||||
loadSettings();
|
||||
@@ -147,6 +144,9 @@ public class FabricHuskSync implements DedicatedServerModInitializer, HuskSync,
|
||||
// Initial plugin setup
|
||||
this.audiences = FabricServerAudiences.of(minecraftServer);
|
||||
|
||||
// Check compatibility
|
||||
checkCompatibility();
|
||||
|
||||
// Prepare data adapter
|
||||
initialize("data adapter", (plugin) -> {
|
||||
if (getSettings().getSynchronization().isCompressData()) {
|
||||
|
||||
Reference in New Issue
Block a user