Mak sure double-tall plants drop (#38)
This commit is contained in:
parent
f13add113b
commit
5af8d3057e
1 changed files with 7 additions and 11 deletions
|
@ -114,10 +114,6 @@ public abstract class BaseDoublePlantBlock extends BaseBlockNotFull implements R
|
|||
|
||||
@Override
|
||||
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
|
||||
if (state.getValue(TOP)) {
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
|
||||
ItemStack tool = builder.getParameter(LootContextParams.TOOL);
|
||||
if (tool != null && BaseShearsItem.isShear(tool) || EnchantmentHelper.getItemEnchantmentLevel(
|
||||
Enchantments.SILK_TOUCH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue