mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Remove the drop.
This commit is contained in:
parent
9cc9eead52
commit
1b421a24b0
@ -236,6 +236,7 @@ public class PlayerListener implements Listener {
|
|||||||
ItemStack itemstack = iterator.next();
|
ItemStack itemstack = iterator.next();
|
||||||
|
|
||||||
if (itemstack == null) {
|
if (itemstack == null) {
|
||||||
|
drop.remove();
|
||||||
inventory.setItem(nextSlot, dropStack);
|
inventory.setItem(nextSlot, dropStack);
|
||||||
player.updateInventory();
|
player.updateInventory();
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user