Reformat and clean up "net" package

This commit is contained in:
P0nk
2021-09-09 23:26:02 +02:00
parent 69f4580637
commit 6be6ea9927
235 changed files with 3556 additions and 3398 deletions

View File

@@ -40,14 +40,14 @@ public final class PetLootHandler extends AbstractPacketHandler {
@Override
public final void handlePacket(InPacket p, Client c) {
Character chr = c.getPlayer();
int petIndex = chr.getPetIndex(p.readInt());
Pet pet = chr.getPet(petIndex);
if (pet == null || !pet.isSummoned()) {
c.sendPacket(PacketCreator.enableActions());
return;
}
p.skip(13);
int oid = p.readInt();
MapObject ob = chr.getMap().getMapObject(oid);
@@ -61,7 +61,7 @@ public final class PetLootHandler extends AbstractPacketHandler {
if (chr.isEquippedPetItemIgnore()) {
final Set<Integer> petIgnore = chr.getExcludedItems();
if(!petIgnore.isEmpty() && petIgnore.contains(Integer.MAX_VALUE)) {
if (!petIgnore.isEmpty() && petIgnore.contains(Integer.MAX_VALUE)) {
c.sendPacket(PacketCreator.enableActions());
return;
}
@@ -74,7 +74,7 @@ public final class PetLootHandler extends AbstractPacketHandler {
if (chr.isEquippedPetItemIgnore()) {
final Set<Integer> petIgnore = chr.getExcludedItems();
if(!petIgnore.isEmpty() && petIgnore.contains(mapitem.getItem().getItemId())) {
if (!petIgnore.isEmpty() && petIgnore.contains(mapitem.getItem().getItemId())) {
c.sendPacket(PacketCreator.enableActions());
return;
}