diff options
author | md_5 <git@md-5.net> | 2016-11-18 09:11:17 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-18 09:11:17 +1100 |
commit | 64032adfd28dbe545ce9dab346a1b9abbc56d349 (patch) | |
tree | 6e6017b86e6c5310a54dc9e5dd8dd22c11469902 /src/main/java/org | |
parent | 162e96132615902cbd603bc4a97c61cf7365d7d7 (diff) | |
download | craftbukkit-64032adfd28dbe545ce9dab346a1b9abbc56d349.tar craftbukkit-64032adfd28dbe545ce9dab346a1b9abbc56d349.tar.gz craftbukkit-64032adfd28dbe545ce9dab346a1b9abbc56d349.tar.lz craftbukkit-64032adfd28dbe545ce9dab346a1b9abbc56d349.tar.xz craftbukkit-64032adfd28dbe545ce9dab346a1b9abbc56d349.zip |
Remove unit test based on now incorrect assumptions
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 869ea6ac..1c67ee9f 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -996,7 +996,7 @@ public class CraftEventFactory { } public static PrepareAnvilEvent callPrepareAnvilEvent(InventoryView view, ItemStack item) { - PrepareAnvilEvent event = new PrepareAnvilEvent(view, CraftItemStack.asCraftMirror(item).clone()); + PrepareAnvilEvent event = new PrepareAnvilEvent(view, CraftItemStack.asCraftMirror(item)); event.getView().getPlayer().getServer().getPluginManager().callEvent(event); event.getInventory().setItem(2, event.getResult()); return event; @@ -1016,7 +1016,7 @@ public class CraftEventFactory { public static EntityBreedEvent callEntityBreedEvent(EntityLiving child, EntityLiving mother, EntityLiving father, EntityLiving breeder, ItemStack bredWith, int experience) { org.bukkit.entity.LivingEntity breederEntity = (LivingEntity)(breeder == null ? null : breeder.getBukkitEntity()); - CraftItemStack bredWithStack = (bredWith.isEmpty()) ? null : CraftItemStack.asCraftMirror(bredWith).clone(); + CraftItemStack bredWithStack = CraftItemStack.asCraftMirror(bredWith); EntityBreedEvent event = new EntityBreedEvent((LivingEntity) child.getBukkitEntity(), (LivingEntity) mother.getBukkitEntity(), (LivingEntity) father.getBukkitEntity(), breederEntity, bredWithStack, experience); child.world.getServer().getPluginManager().callEvent(event); |