mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Fix inventory drop
This commit is contained in:
parent
56eead948a
commit
6c51631a29
@ -39,9 +39,17 @@ public class WindowListener {
|
||||
|
||||
if (clickType == ClientClickWindowPacket.ClickType.PICKUP) {
|
||||
if (button == 0) {
|
||||
successful = inventory.leftClick(player, slot);
|
||||
if (slot != -999) {
|
||||
successful = inventory.leftClick(player, slot);
|
||||
} else {
|
||||
successful = inventory.drop(player, true, slot, button);
|
||||
}
|
||||
} else if (button == 1) {
|
||||
successful = inventory.rightClick(player, slot);
|
||||
if (slot != -999) {
|
||||
successful = inventory.rightClick(player, slot);
|
||||
} else {
|
||||
successful = inventory.drop(player, false, slot, button);
|
||||
}
|
||||
}
|
||||
} else if (clickType == ClientClickWindowPacket.ClickType.QUICK_MOVE) {
|
||||
successful = inventory.shiftClick(player, slot);
|
||||
|
Loading…
Reference in New Issue
Block a user