further cheat improvements, change some tabs

This commit is contained in:
Sen 2025-07-05 14:17:57 +02:00
parent 7e9673dc25
commit 0c7459d371
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
10 changed files with 18 additions and 12 deletions

View file

@ -2888,9 +2888,10 @@ public class Player extends User implements ICrafting, Executor, IPlayer
if(amount <= 0)
return;
}
else if(packet.getSlot() <= -2 - 9) {
this.entity.dropItem(stack, false, true);
}
else {
if(packet.getSlot() <= -2 - 9)
return;
Slot slot = packet.getSlot() < 0 ? this.entity.inventoryContainer.getSlot(36 + -2 - packet.getSlot()) : this.entity.openContainer.getSlot(packet.getSlot());
if(slot == null || !slot.canCheatItem())
return;