mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-05 00:28:33 +01:00
Fixed the altar renderer breaking when missing a recipe
Closes #56 and #59
This commit is contained in:
parent
e3d2bdff6f
commit
704c58c281
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue