Made item intersion on the farmer more specific

This commit is contained in:
Ellpeck 2016-11-29 21:57:36 +01:00
parent b43886d954
commit 95d2fa45ec

View file

@ -202,7 +202,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase{
@Override
public boolean isItemValidForSlot(int i, ItemStack stack){
return i < 6 && StackUtil.isValid(stack) && stack.getItem() instanceof IPlantable;
return i < 6 && StackUtil.isValid(stack) && getPlantableFromStack(stack) != null;
}
@Override