Fixed NPE with no resourceLocation
This commit is contained in:
parent
3a444d2dce
commit
b11d3ea95e
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ public class AlchemyArray {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output, IItemStack input, IItemStack catalyst, @Optional String textureLocation) {
|
||||
ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toStack(input), InputHelper.toStack(catalyst), InputHelper.toStack(output), new ResourceLocation(textureLocation)));
|
||||
ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toStack(input), InputHelper.toStack(catalyst), InputHelper.toStack(output), textureLocation !=null ? new ResourceLocation(textureLocation) : null));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
|
|
Loading…
Reference in a new issue