Skip to content

Commit

Permalink
NPE when attempting to write the clientside config on remote worlds ( #…
Browse files Browse the repository at this point in the history
  • Loading branch information
HeatherComputer committed Sep 21, 2024
1 parent 8e891e3 commit f79ebd0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public void preInit(FMLPreInitializationEvent event)
infoLogger = LOGGER::info;
warningLogger = LOGGER::warn;
errorLogger = LOGGER::error;

ABCore.infoLogger = infoLogger;
ABCore.warningLogger = warningLogger;
ABCore.errorLogger = errorLogger;

}


Expand Down Expand Up @@ -90,10 +95,6 @@ public void onServerStarting(FMLServerStartingEvent event)
ABCore.enableSaving = AdvancedBackups::enableSaving;
ABCore.saveOnce = AdvancedBackups::saveOnce;

ABCore.infoLogger = infoLogger;
ABCore.warningLogger = warningLogger;
ABCore.errorLogger = errorLogger;

ABCore.clientContactor = new ABClientContactor();
ABCore.resetActivity = AdvancedBackups::resetActivity;

Expand Down

0 comments on commit f79ebd0

Please sign in to comment.