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

@ -710,7 +710,7 @@ public abstract class GuiContainer extends Gui
}
public void dropItem() {
if (this.gm != null && this.gm.player != null && this.theSlot != null && this.theSlot.getHasStack())
if (!this.clickSide(this.gm.mouse_x, this.gm.mouse_y, -100, this.gm.shift(), this.gm.ctrl()) && this.gm != null && this.gm.player != null && this.theSlot != null && this.theSlot.getHasStack())
{
this.handleMouseClick(this.theSlot, this.theSlot.slotNumber, this.gm.ctrl() ? 1 : 0, 4);
}
@ -872,7 +872,7 @@ public abstract class GuiContainer extends Gui
int idx = sx + (sy + off) * this.cheatWidth;
if(idx >= 0 && idx < ITEM_LIST.size()) {
if(slot >= 0 || instant) {
if(slot != -1 || instant) {
this.gm.player.client.addToSendQueue(new CPacketCheat(ITEM_LIST.get(idx), slot < 0 ? slot : -2 - slot, full));
}
else {