Fixed NPE in EventHookContainer
Fixed an NPE that would occur because mod_pocketDim.deathTracker was set to null before the last onWorldSave event was triggered when a server was shutting down.
This commit is contained in:
parent
aea1a9a7c5
commit
4ec84f9b86
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ public class EventHookContainer
|
|||
{
|
||||
PocketManager.save();
|
||||
|
||||
if (mod_pocketDim.deathTracker.isModified())
|
||||
if (mod_pocketDim.deathTracker != null && mod_pocketDim.deathTracker.isModified())
|
||||
{
|
||||
mod_pocketDim.deathTracker.writeToFile();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue