FIX: Crash when server is disaibling
This commit is contained in:
@@ -120,10 +120,12 @@ void ClientSideNetworkHandler::onDisconnect(const RakNet::RakNetGUID& guid)
|
||||
level->removeEntity(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
minecraft->setLevel(NULL);
|
||||
#ifndef STANDALONE_SERVER
|
||||
minecraft->gui.addMessage("Disconnected from server");
|
||||
// TODO: screen with error
|
||||
minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user