package joshie.harvest.crops.handlers.state;

import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;

public class StateHandlerSeedFood extends StateHandlerVanilla {
    public StateHandlerSeedFood(Block block) {
        super(block);
    }

    @SuppressWarnings("deprecation")
    @Override
    public IBlockState getState(PlantSection section, int stage, boolean withered) {
        if (stage == 1) return block.getStateFromMeta(0);
        if (stage == 2 || stage == 3 || stage == 4) return block.getStateFromMeta(1);
        if (stage == 5 || stage == 6 || stage == 7) return block.getStateFromMeta(2);
        return block.getStateFromMeta(3);
    }
}
@@ -407,24 +407,8 @@
     
- if (stage == 1)
  ret
@@ -438,223 +438,17 @@
 eta(
-0);%0A        if (stage == 2 %7C%7C stage == 3 %7C%7C stage == 4) return block.getStateFromMeta(1);%0A        if (stage == 5 %7C%7C stage == 6 %7C%7C stage == 7) return block.getStateFromMeta(2);%0A        return block.getStateFromMeta(3
+stage - 1
 );%0A 

Fix seed food crops.