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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue