SPIGOT-8010: Fix handling PlayerDropItemEvent
This commit is contained in:
parent
ade46cc79f
commit
43f66f6cb7
@ -167,7 +167,20 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int j2;
|
int j2;
|
||||||
@@ -662,8 +759,9 @@
|
@@ -598,7 +695,11 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
itemstack = slot2.safeTake(k, Integer.MAX_VALUE, entityhuman);
|
||||||
|
- entityhuman.drop(itemstack, true);
|
||||||
|
+ // CraftBukkit start - SPIGOT-8010: break loop
|
||||||
|
+ if (entityhuman.drop(itemstack, true) == null) {
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ // CraftBukkit end
|
||||||
|
entityhuman.handleCreativeModeItemDrop(itemstack);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -662,8 +763,9 @@
|
||||||
ItemStack itemstack = this.getCarried();
|
ItemStack itemstack = this.getCarried();
|
||||||
|
|
||||||
if (!itemstack.isEmpty()) {
|
if (!itemstack.isEmpty()) {
|
||||||
@ -178,7 +191,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -893,6 +991,11 @@
|
@@ -893,6 +995,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getCarried() {
|
public ItemStack getCarried() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user