Handlers read from InPacket instead of SeekableLittleEndianAccessor
This commit is contained in:
@@ -24,13 +24,13 @@ package net.server.channel.handlers;
|
||||
import client.MapleClient;
|
||||
import client.MapleCharacter;
|
||||
import net.AbstractMaplePacketHandler;
|
||||
import tools.data.input.SeekableLittleEndianAccessor;
|
||||
import net.packet.InPacket;
|
||||
|
||||
public final class CancelChairHandler extends AbstractMaplePacketHandler {
|
||||
|
||||
@Override
|
||||
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
|
||||
int id = slea.readShort();
|
||||
public final void handlePacket(InPacket p, MapleClient c) {
|
||||
int id = p.readShort();
|
||||
MapleCharacter mc = c.getPlayer();
|
||||
|
||||
if (id >= mc.getMap().getSeats()) {
|
||||
|
||||
Reference in New Issue
Block a user