Fixed items losing their enchantments under certain circumstances.

This commit is contained in:
Travis Watkins
2012-02-01 04:22:05 -06:00
committed by EvilSeph
parent 329cf29667
commit 5ae8f13fde
2 changed files with 3 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ public class BlockFurnace extends BlockContainer {
}
itemstack.count -= i1;
EntityItem entityitem = new EntityItem(world, (double) ((float) i + f), (double) ((float) j + f1), (double) ((float) k + f2), new ItemStack(itemstack.id, i1, itemstack.getData()));
EntityItem entityitem = new EntityItem(world, (double) ((float) i + f), (double) ((float) j + f1), (double) ((float) k + f2), new ItemStack(itemstack.id, i1, itemstack.getData(), itemstack.getEnchantments())); // CraftBukkit - include enchantments in new itemstack
float f3 = 0.05F;
entityitem.motX = (double) ((float) this.a.nextGaussian() * f3);