Use MapleClient for session management
First working version of the Netty implementation, but there's a lot remaining to be done.
This commit is contained in:
@@ -156,7 +156,7 @@ public class MapleMiniGame extends AbstractMapleMapObject {
|
||||
|
||||
public void broadcastToOwner(final byte[] packet) {
|
||||
MapleClient c = owner.getClient();
|
||||
if (c != null && c.getSession() != null) {
|
||||
if (c != null) {
|
||||
c.announce(packet);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,8 +386,9 @@ public class MaplePlayerShop extends AbstractMapleMapObject {
|
||||
}
|
||||
|
||||
public void broadcast(final byte[] packet) {
|
||||
if (owner.getClient() != null && owner.getClient().getSession() != null) {
|
||||
owner.getClient().announce(packet);
|
||||
MapleClient client = owner.getClient();
|
||||
if (client != null) {
|
||||
client.announce(packet);
|
||||
}
|
||||
broadcastToVisitors(packet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user