EntityDropItemEvent for cats should continue to next stack if cancelled
Thanks @Black-Hole
This commit is contained in:
parent
e5cb519d6a
commit
b9b0c4e4a4
@ -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…
x
Reference in New Issue
Block a user