Handlers read from InPacket instead of SeekableLittleEndianAccessor

This commit is contained in:
P0nk
2021-08-22 22:10:19 +02:00
parent 2232022cf1
commit da2d8abc56
182 changed files with 1223 additions and 1230 deletions

View File

@@ -25,7 +25,7 @@ import client.MapleCharacter;
import client.MapleClient;
import client.processor.npc.FredrickProcessor;
import net.AbstractMaplePacketHandler;
import tools.data.input.SeekableLittleEndianAccessor;
import net.packet.InPacket;
/**
*
@@ -34,9 +34,9 @@ import tools.data.input.SeekableLittleEndianAccessor;
public class FredrickHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
public void handlePacket(InPacket p, MapleClient c) {
MapleCharacter chr = c.getPlayer();
byte operation = slea.readByte();
byte operation = p.readByte();
switch (operation) {
case 0x19: //Will never come...