mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
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:
parent
d5f80533da
commit
47abd03c46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user