diff options
author | riking <rikingcoding@gmail.com> | 2013-04-11 21:10:12 -0700 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-04-13 00:31:20 -0500 |
commit | 5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd (patch) | |
tree | f24cf62b428e9838b3df782f5585dc5dd0252d21 /src/main/java/net/minecraft/server/Container.java | |
parent | 1c18834b7d25fdd79ff8481da94437b4073400e0 (diff) | |
download | craftbukkit-5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd.tar craftbukkit-5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd.tar.gz craftbukkit-5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd.tar.lz craftbukkit-5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd.tar.xz craftbukkit-5cc4fbd712f1c81306b6cedcf9bbceb276d01ebd.zip |
Perform anvil calculations when using 1.5 drop feature.
When using the new feature in 1.5 to drop the item in any highlighted slot,
the anvil result slot does not apply the full anvil calculation that picking
up the item does, including the experience calculation.
Diffstat (limited to 'src/main/java/net/minecraft/server/Container.java')
-rw-r--r-- | src/main/java/net/minecraft/server/Container.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Container.java b/src/main/java/net/minecraft/server/Container.java index a1d930cb..b44c2ff1 100644 --- a/src/main/java/net/minecraft/server/Container.java +++ b/src/main/java/net/minecraft/server/Container.java @@ -337,7 +337,7 @@ public abstract class Container { } } else if (k == 4 && playerinventory.getCarried() == null && i >= 0) { slot2 = (Slot) this.c.get(i); - if (slot2 != null && slot2.d()) { + if (slot2 != null && slot2.d() && slot2.a(entityhuman)) { // CraftBukkit - Validate before dropping itemstack1 = slot2.a(j == 0 ? 1 : slot2.getItem().count); slot2.a(entityhuman, itemstack1); entityhuman.drop(itemstack1); |