mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-05 18:37:06 +02:00
Block harvesting until tema uses new getDrops
This commit is contained in:
parent
da573459cb
commit
213716fc46
|
@ -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