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

@@ -29,16 +29,15 @@ import net.packet.InPacket;
import tools.PacketCreator;
/**
*
* @author kevintjuh93
*
* <p>
* Modified by -- Ronan - concurrency protection
*/
public class UseGachaExpHandler extends AbstractPacketHandler {
@Override
public void handlePacket(InPacket p, Client c) {
if (c.tryacquireClient()) {
try {
if (c.getPlayer().getGachaExp() <= 0) {
@@ -49,7 +48,7 @@ public class UseGachaExpHandler extends AbstractPacketHandler {
c.releaseClient();
}
}
c.sendPacket(PacketCreator.enableActions());
}
}