[Bleeding] Fixed item duping in certain occasions. Fixes BUKKIT-1310

This commit is contained in:
feildmaster
2012-03-25 17:53:59 -05:00
committed by Warren Loo
parent 0c9b59e071
commit c30e339af6
3 changed files with 9 additions and 12 deletions

View File

@@ -300,9 +300,8 @@ public class BlockVine extends Block {
// CraftBukkit start - Calculate drops
public ArrayList<ItemStack> calculateDrops(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
if (!world.isStatic && entityhuman.U() != null && entityhuman.U().id == Item.SHEARS.id) {
super.dropList = new ArrayList<ItemStack>();
this.a(world, i, j, k, new ItemStack(Block.VINE, 1, 0));
return super.dropList;
return this.dropList;
} else {
return super.calculateDrops(world, entityhuman, i, j, k, l);
}