Change channel transition patch
Solved an issue where players were being unable to return to the game once changing channels.
This commit is contained in:
@@ -487,7 +487,6 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
}
|
||||
|
||||
public void setAwayFromChannelWorld() {
|
||||
client.getSession().setAttribute(MapleClient.CLIENT_CASH_SHOP);
|
||||
setAwayFromChannelWorld(false);
|
||||
}
|
||||
|
||||
@@ -505,6 +504,10 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
}
|
||||
}
|
||||
|
||||
public void setSessionTransitionState() {
|
||||
client.getSession().setAttribute(MapleClient.CLIENT_TRANSITION);
|
||||
}
|
||||
|
||||
public long getPetLootCd() {
|
||||
return petLootCd;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class MapleClient {
|
||||
public static final String CLIENT_HWID = "HWID";
|
||||
public static final String CLIENT_NIBBLEHWID = "HWID2";
|
||||
public static final String CLIENT_REMOTE_ADDRESS = "REMOTE_IP";
|
||||
public static final String CLIENT_CASH_SHOP = "CASH_SHOP";
|
||||
public static final String CLIENT_TRANSITION = "TRANSITION";
|
||||
private MapleAESOFB send;
|
||||
private MapleAESOFB receive;
|
||||
private final IoSession session;
|
||||
@@ -1474,6 +1474,7 @@ public class MapleClient {
|
||||
player.unregisterChairBuff();
|
||||
server.getPlayerBuffStorage().addBuffsToStorage(player.getId(), player.getAllBuffs());
|
||||
server.getPlayerBuffStorage().addDiseasesToStorage(player.getId(), player.getAllDiseases());
|
||||
player.setSessionTransitionState();
|
||||
player.setDisconnectedFromChannelWorld();
|
||||
player.notifyMapTransferToPartner(-1);
|
||||
player.removeIncomingInvites();
|
||||
|
||||
Reference in New Issue
Block a user