Merge pull request #382 from ForceUpdate1/1.15

Fixing that the PlayerDropItemEvent was not fired
This commit is contained in:
Josh Knight 2020-03-29 19:34:51 -04:00 committed by GitHub
commit 8597ab1ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
Item Item
dropped = player.getWorld().dropItem(player.getLocation(), stack); dropped = player.getWorld().dropItem(player.getLocation(), stack);
PlayerDropItemEvent event = new PlayerDropItemEvent(player, dropped); PlayerDropItemEvent event = new PlayerDropItemEvent(player, dropped);
Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) { if (event.isCancelled()) {
dropped.remove(); dropped.remove();
} }