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:
SenseiKiwi 2014-03-05 21:53:50 -04:00
parent aea1a9a7c5
commit 4ec84f9b86

View file

@ -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();
}