Block harvesting until tema uses new getDrops

This commit is contained in:
Shadows_of_Fire 2017-12-06 15:59:18 -05:00
parent da573459cb
commit 213716fc46

View file

@ -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();