Bump patchouli and forge, fix floating flower in world render

This commit is contained in:
Vincent Lee committed 2020-02-14 20:56:28 -06:00
1 parent 9c23ff9257
commit 05fe2c195c
9 files changed
+43 -22

No files matched your search

@@ -15,20 +15,18 @@ import net.minecraft.item.crafting.Ingredient;
import net.minecraft.util.ResourceLocation;
import vazkii.botania.api.BotaniaAPI;
import vazkii.botania.api.recipe.IModRecipe;
import vazkii.patchouli.api.VariableHolder;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
/**
* Patchouli custom component that draws a rotating circle of items from the defined recipe.
*/
public class RotatingRecipeComponent extends RotatingItemListComponentBase {
@VariableHolder
@SerializedName("recipe_name")
public String recipeName;
@VariableHolder
@SerializedName("recipe_type")
public String recipeType;
@@ -45,4 +43,10 @@ public class RotatingRecipeComponent extends RotatingItemListComponentBase {
IModRecipe recipe = map.get(new ResourceLocation(recipeName));
return recipe.getInputs();
}
@Override
public void onVariablesAvailable(Function<String, String> lookup) {
recipeName = lookup.apply(recipeName);
recipeType = lookup.apply(recipeType);
}
}