Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed PlayerDropItem event cancelling.
Dieser Commit ist enthalten in:
Ursprung
e4a2177281
Commit
1e8bbbfbd5
@ -294,10 +294,7 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
this.world.getServer().getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
org.bukkit.inventory.ItemStack stack = drop.getItemStack();
|
||||
stack.setAmount(1);
|
||||
player.getInventory().addItem(stack);
|
||||
|
||||
player.getInventory().addItem(drop.getItemStack());
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren