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

@@ -43,16 +43,16 @@ public final class SkillBookHandler extends AbstractPacketHandler {
c.sendPacket(PacketCreator.enableActions());
return;
}
p.readInt();
short slot = p.readShort();
int itemId = p.readInt();
boolean canuse;
boolean success = false;
int skill = 0;
int maxlevel = 0;
Character player = c.getPlayer();
if (c.tryacquireClient()) {
try {
@@ -95,7 +95,7 @@ public final class SkillBookHandler extends AbstractPacketHandler {
} finally {
c.releaseClient();
}
// thanks Vcoc for noting skill book result not showing for all in area
player.getMap().broadcastMessage(PacketCreator.skillBookResult(player, skill, maxlevel, canuse, success));
}