add null check for storageManager?
@@ -104,7 +104,7 @@ public void dispose(boolean shuttingDown) {
chunkProvider.dispose();
boolean save = networkSystem.getMode().isAuthority();
- if (save) {
+ if (save && storageManager != null) {
storageManager.waitForCompletionOfPreviousSaveAndStartSaving();
}
