mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Block harvesting until tema uses new getDrops
This commit is contained in:
parent
da573459cb
commit
213716fc46
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ public abstract class ExUPlantFarmerBehavior implements IFarmerBehavior{
|
|||
if(block.getMetaFromState(state) >= this.getMaxStage()){
|
||||
NonNullList<ItemStack> drops = NonNullList.create();
|
||||
block.getDrops(drops, world, pos, state, 0);
|
||||
if(drops.isEmpty()) return FarmerResult.FAIL;
|
||||
for(ItemStack stack : drops){
|
||||
if(StackUtil.isValid(stack)){
|
||||
ResourceLocation itemReg = stack.getItem().getRegistryName();
|
||||
|
|
Loading…
Reference in a new issue