Compare commits

..
1 Commits
Author SHA1 Message Date
miozune 10df035419 Fix BOP Turnip Seeds extracted into 0mB of Seed Oil (#39)
* Fix BOP Turnip Seeds extracted into 0mB of Seed Oil

* Use `GameRegistry#findItemStack`
2022-10-25 19:54:42 +02:00
@@ -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() {