mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix NPE on server shutdown with no user data
This commit is contained in:
parent
1d7919c050
commit
a677450d50
@ -1,3 +1,6 @@
|
||||
Version 2.1.72
|
||||
Fixed a NPE if a server shutdown with no player data needing to be saved (the error is harmless but spammy)
|
||||
|
||||
Version 2.1.71
|
||||
Salvage will now always ask for confirmation before breaking your items (instead of only asking for enchanted items)
|
||||
Repair will now always ask for confirmation before repairing items (instead of only asking for enchanted items)
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.71</version>
|
||||
<version>2.1.72-SNAPSHOT</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -66,6 +66,9 @@ public final class UserManager {
|
||||
* Save all users ON THIS THREAD.
|
||||
*/
|
||||
public static void saveAll() {
|
||||
if(playerDataSet == null)
|
||||
return;
|
||||
|
||||
ImmutableList<McMMOPlayer> trackedSyncData = ImmutableList.copyOf(playerDataSet);
|
||||
|
||||
mcMMO.p.getLogger().info("Saving mcMMOPlayers... (" + trackedSyncData.size() + ")");
|
||||
|
Loading…
Reference in New Issue
Block a user