Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
SPIGOT-2806: Fix PlayerDropItemEvent for disconnected players
Dieser Commit ist enthalten in:
Ursprung
221508dce3
Commit
95436219a5
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren