Merge pull request #382 from ForceUpdate1/1.15

Fixing that the PlayerDropItemEvent was not fired
Dieser Commit ist enthalten in:
Josh Knight 2020-03-29 19:34:51 -04:00 committet von GitHub
Commit 8597ab1ce8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

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