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

@@ -31,12 +31,12 @@ public final class UseChairHandler extends AbstractPacketHandler {
@Override
public final void handlePacket(InPacket p, Client c) {
int itemId = p.readInt();
// thanks Darter (YungMoozi) for reporting unchecked chair item
if (!ItemConstants.isChair(itemId) || c.getPlayer().getInventory(InventoryType.SETUP).findById(itemId) == null) {
return;
}
if (c.tryacquireClient()) {
try {
c.getPlayer().sitChair(itemId);