Skip to content

Commit

Permalink
Merge pull request #4 from Seggan/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooy1 authored Sep 17, 2021
2 parents f8977e1 + 46ab1af commit 417f738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.mooy1</groupId>
<artifactId>InfinityLib</artifactId>
<version>1.3.7</version>
<version>1.3.8</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import lombok.Getter;

import org.apache.commons.lang.Validate;
import org.bukkit.inventory.ItemStack;

import io.github.mooy1.infinitylib.core.AbstractAddon;
Expand All @@ -25,6 +26,10 @@ public MachineRecipeType(String key, ItemStack item) {

@Override
public void register(ItemStack[] recipe, ItemStack result) {
if (recipe == null) return;
for (ItemStack stack : recipe) {
if (stack == null) return;
}
callbacks.forEach(c -> c.accept(recipe, result));
recipes.put(recipe, result);
}
Expand Down

0 comments on commit 417f738

Please sign in to comment.