Fixed the altar renderer breaking when missing a recipe

Closes #56 and #59
This commit is contained in:
Ellpeck 2019-11-08 23:16:14 +01:00
parent e3d2bdff6f
commit 704c58c281

View file

@ -39,6 +39,8 @@ public class ProcessorAltar implements IComponentProcessor {
@Override
public boolean allowRender(String group) {
if(this.recipe == null)
return false;
return group.isEmpty() || group.equals(this.recipe.catalyst == Ingredient.EMPTY ? "altar" : "catalyst");
}
}