Skip to content

Commit

Permalink
Merge branch 'mcMMO-Dev:master' into dev/sell-hand
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock authored Feb 20, 2024
2 parents 3a2bc0a + cdc187b commit dcc4928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/gmail/nossr50/mcMMO.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ public void onDisable() {
UserManager.saveAll(); // Make sure to save player information if the server shuts down
UserManager.clearAll();
Alchemy.finishAllBrews(); // Finish all partially complete AlchemyBrewTasks to prevent vanilla brewing continuation on restart
getPartyManager().saveParties(); // Save our parties
if(partyConfig.isPartyEnabled())
getPartyManager().saveParties(); // Save our parties

//TODO: Needed?
if(generalConfig.getScoreboardsEnabled())
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gmail/nossr50/runnables/SaveTimerTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void run() {
count++;
}


mcMMO.p.getPartyManager().saveParties();
if(mcMMO.p.getPartyConfig().isPartyEnabled())
mcMMO.p.getPartyManager().saveParties();
}
}

0 comments on commit dcc4928

Please sign in to comment.