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:
@@ -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());
|
+ 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);
|
+ entityitem.world.getServer().getPluginManager().callEvent(event);
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ return;
|
+ continue;
|
||||||
+ }
|
+ }
|
||||||
+ this.a.world.addEntity(entityitem);
|
+ this.a.world.addEntity(entityitem);
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
|||||||
Reference in New Issue
Block a user