diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-02-01 04:22:05 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-03 03:39:35 -0500 |
commit | 5ae8f13fdedbdfcc8204111a557fd9e1ad392220 (patch) | |
tree | bfe79cb21cf59c7fa0f2ef7fe97bb397e004a566 /src/main/java/net/minecraft/server/EntityMinecart.java | |
parent | 329cf29667060c6ffc39d0f750bfd032ad66e2c6 (diff) | |
download | craftbukkit-5ae8f13fdedbdfcc8204111a557fd9e1ad392220.tar craftbukkit-5ae8f13fdedbdfcc8204111a557fd9e1ad392220.tar.gz craftbukkit-5ae8f13fdedbdfcc8204111a557fd9e1ad392220.tar.lz craftbukkit-5ae8f13fdedbdfcc8204111a557fd9e1ad392220.tar.xz craftbukkit-5ae8f13fdedbdfcc8204111a557fd9e1ad392220.zip |
Fixed items losing their enchantments under certain circumstances.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMinecart.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMinecart.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMinecart.java b/src/main/java/net/minecraft/server/EntityMinecart.java index 75abecc7..49e1bf03 100644 --- a/src/main/java/net/minecraft/server/EntityMinecart.java +++ b/src/main/java/net/minecraft/server/EntityMinecart.java @@ -153,7 +153,7 @@ public class EntityMinecart extends Entity implements IInventory { } itemstack.count -= k; - EntityItem entityitem = new EntityItem(this.world, this.locX + (double) f, this.locY + (double) f1, this.locZ + (double) f2, new ItemStack(itemstack.id, k, itemstack.getData())); + EntityItem entityitem = new EntityItem(this.world, this.locX + (double) f, this.locY + (double) f1, this.locZ + (double) f2, new ItemStack(itemstack.id, k, itemstack.getData(), itemstack.getEnchantments())); // CraftBukkit - include enchantments in the new itemstack float f3 = 0.05F; entityitem.motX = (double) ((float) this.random.nextGaussian() * f3); @@ -197,7 +197,7 @@ public class EntityMinecart extends Entity implements IInventory { } itemstack.count -= j; - EntityItem entityitem = new EntityItem(this.world, this.locX + (double) f, this.locY + (double) f1, this.locZ + (double) f2, new ItemStack(itemstack.id, j, itemstack.getData())); + EntityItem entityitem = new EntityItem(this.world, this.locX + (double) f, this.locY + (double) f1, this.locZ + (double) f2, new ItemStack(itemstack.id, j, itemstack.getData(), itemstack.getEnchantments())); // CraftBukkit - include enchantments in the new itemstack float f3 = 0.05F; entityitem.motX = (double) ((float) this.random.nextGaussian() * f3); |