Let PacketCreator create Packet - initial test

This commit is contained in:
P0nk
2021-08-20 16:11:07 +02:00
parent d8b0929975
commit b5cd6887ae
4 changed files with 26 additions and 20 deletions

View File

@@ -38,6 +38,7 @@ import constants.game.ExpTable;
import constants.game.GameConstants;
import constants.inventory.ItemConstants;
import constants.skills.*;
import net.packet.Packet;
import net.server.PlayerBuffValueHolder;
import net.server.PlayerCoolDownValueHolder;
import net.server.Server;
@@ -10048,10 +10049,15 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
announce(PacketCreator.updatePlayerStats(Collections.singletonList(new Pair<>(stat, Integer.valueOf(newval))), itemReaction, this));
}
@Deprecated(forRemoval = true)
public void announce(final byte[] packet) {
client.announce(packet);
}
public void sendPacket(Packet packet) {
client.sendPacket(packet);
}
@Override
public int getObjectId() {
return getId();