mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 22:03:51 -07:00
Seriously fix natural drops. Fixes BUKKIT-1297 and fixes BUKKIT-1295
This commit is contained in:
@@ -30,7 +30,7 @@ public class BlockLongGrass extends BlockFlower {
|
||||
/* CraftBukkit start - moved this line into calculateDrops
|
||||
this.a(world, i, j, k, new ItemStack(Block.LONG_GRASS, 1, l));
|
||||
*/
|
||||
this.doActualDrop(world, entityhuman, i, j, k, l);
|
||||
this.doActualDrop(world, i, j, k);
|
||||
// CraftBukkit end
|
||||
} else {
|
||||
super.a(world, entityhuman, i, j, k, l);
|
||||
@@ -40,9 +40,8 @@ public class BlockLongGrass extends BlockFlower {
|
||||
// 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.LONG_GRASS, 1, l));
|
||||
return super.dropList;
|
||||
return this.dropList;
|
||||
} else {
|
||||
return super.calculateDrops(world, entityhuman, i, j, k, l);
|
||||
}
|
||||
|
Reference in New Issue
Block a user