13
0
geforkt von Mirrors/Paper

SPIGOT-2806: Fix PlayerDropItemEvent for disconnected players

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-11-20 10:19:22 +11:00
Ursprung 0193564053
Commit 1026d97b35

Datei anzeigen

@ -97,7 +97,20 @@
}
this.d();
@@ -258,6 +318,15 @@
@@ -165,8 +225,11 @@
if (i == -999) {
if (!playerinventory.getCarried().isEmpty()) {
if (j == 0) {
- entityhuman.drop(playerinventory.getCarried(), true);
+ // CraftBukkit start
+ ItemStack carried = playerinventory.getCarried();
playerinventory.setCarried(ItemStack.a);
+ entityhuman.drop(carried, true);
+ // CraftBukkit start
}
if (j == 1) {
@@ -258,6 +321,15 @@
}
slot2.f();