Fix BOP Turnip Seeds extracted into 0mB of Seed Oil (#39)

* Fix BOP Turnip Seeds extracted into 0mB of Seed Oil

* Use `GameRegistry#findItemStack`
This commit is contained in:
miozune authored and GitHub committed 2022-10-25 19:54:42 +02:00
1 parent 5f622686f3
commit 10df035419
1 file changed
+8 -4
@@ -126,10 +126,6 @@ public class PluginBiomesOPlenty extends ForestryPlugin {
Farmables.farmables
.get(FarmableReference.Vegetables.get())
.add(new FarmableGenericCrop(boPTurnipSeedStack, boPTurnip, 7));
if (PluginManager.Module.FACTORY.isEnabled()) {
RecipeManagers.squeezerManager.addRecipe(
10, new ItemStack[] {boPTurnipSeedStack}, Fluids.SEEDOIL.getFluid(amount));
}
}
Farmables.farmables.get(FarmableReference.Orchard.get()).add(new FarmableBasicFruit(boPTurnip, 7));
@@ -171,6 +167,14 @@ public class PluginBiomesOPlenty extends ForestryPlugin {
RecipeManagers.squeezerManager.addRecipe(
10, new ItemStack[] {persimmon}, Fluids.JUICE.getFluid(200), mulch, 20);
}
ItemStack boPTurnipSeedStack = GameRegistry.findItemStack(BoP, "turnipSeeds", 1);
if (boPTurnipSeedStack != null) {
if (PluginManager.Module.FACTORY.isEnabled()) {
RecipeManagers.squeezerManager.addRecipe(
10, new ItemStack[] {boPTurnipSeedStack}, Fluids.SEEDOIL.getFluid(amount));
}
}
}
private static void addFlowers() {