Script clean-up Patch

Fixed bugs in some scripts, minor game patches.
This commit is contained in:
ronancpl
2016-08-01 11:17:31 -03:00
parent 63d0e87d4d
commit ab6074a40c
10 changed files with 255 additions and 49 deletions

View File

@@ -852,16 +852,21 @@ public class MapleClient {
FilePrinter.printError(FilePrinter.ACCOUNT_STUCK, e);
} finally {
getChannelServer().removePlayer(player);
if (!this.serverTransition) {
if (!this.serverTransition) {
worlda.removePlayer(player);
player.saveCooldowns();
player.saveToDB();
if (player != null) {//no idea, occur :(
player.empty(false);
}
player.logOff();
}
player.saveCooldowns();
player.saveToDB();
else {
player.saveCooldowns();
player.saveToDB();
}
player = null;
}
}