EntityDropItemEvent for cats should continue to next stack if cancelled

Thanks @Black-Hole

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-02-07 08:45:11 +11:00
parent d5f80533da
commit 47abd03c46

View File

@ -28,7 +28,7 @@
+ org.bukkit.event.entity.EntityDropItemEvent event = new org.bukkit.event.entity.EntityDropItemEvent(this.a.getBukkitEntity(), (org.bukkit.entity.Item) entityitem.getBukkitEntity());
+ entityitem.world.getServer().getPluginManager().callEvent(event);
+ if (event.isCancelled()) {
+ return;
+ continue;
+ }
+ this.a.world.addEntity(entityitem);
+ // CraftBukkit end