Handlers read from InPacket instead of SeekableLittleEndianAccessor
This commit is contained in:
@@ -22,10 +22,10 @@ package net.server.channel.handlers;
|
||||
import client.MapleClient;
|
||||
import constants.game.GameConstants;
|
||||
import net.AbstractMaplePacketHandler;
|
||||
import net.packet.InPacket;
|
||||
import server.maps.MapleHiredMerchant;
|
||||
import server.maps.MaplePlayerShop;
|
||||
import tools.PacketCreator;
|
||||
import tools.data.input.SeekableLittleEndianAccessor;
|
||||
|
||||
/*
|
||||
* @author Ronan
|
||||
@@ -33,9 +33,9 @@ import tools.data.input.SeekableLittleEndianAccessor;
|
||||
public final class OwlWarpHandler extends AbstractMaplePacketHandler {
|
||||
|
||||
@Override
|
||||
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
|
||||
int ownerid = slea.readInt();
|
||||
int mapid = slea.readInt();
|
||||
public final void handlePacket(InPacket p, MapleClient c) {
|
||||
int ownerid = p.readInt();
|
||||
int mapid = p.readInt();
|
||||
|
||||
if(ownerid == c.getPlayer().getId()) {
|
||||
c.sendPacket(PacketCreator.serverNotice(1, "You cannot visit your own shop."));
|
||||
|
||||
Reference in New Issue
Block a user