forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: Crash when server is disaibling
This commit is contained in:
parent
d3d9b1a238
commit
26e5376030
4 changed files with 45 additions and 44 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue