Cash shop transition patch
Solved an issue where players were being unable to return to the game once exiting the cash shop.
This commit is contained in:
@@ -150,11 +150,9 @@ public class MapleServerHandler extends IoHandlerAdapter {
|
||||
MapleClient client = (MapleClient) session.getAttribute(MapleClient.CLIENT_KEY);
|
||||
if (client != null) {
|
||||
try {
|
||||
boolean inCashShop = false;
|
||||
if (client.getPlayer() != null) {
|
||||
inCashShop = client.getPlayer().getCashShop().isOpened();
|
||||
if (!session.containsAttribute(MapleClient.CLIENT_CASH_SHOP)) {
|
||||
client.disconnect(false, false);
|
||||
}
|
||||
client.disconnect(false, inCashShop);
|
||||
} catch (Throwable t) {
|
||||
FilePrinter.printError(FilePrinter.ACCOUNT_STUCK, t);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user