Added support for Turntable to output nothing (Closes #601)
This commit is contained in:
parent
0b638b8eb7
commit
50ca9fbfc0
1 changed files with 5 additions and 4 deletions
|
@ -10,6 +10,7 @@ import com.blamejared.mtlib.utils.BaseListRemoval;
|
|||
import com.google.common.collect.Lists;
|
||||
import crafttweaker.annotations.*;
|
||||
import crafttweaker.api.item.IItemStack;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.*;
|
||||
|
||||
|
@ -31,7 +32,7 @@ public class Turntable {
|
|||
public static class Add extends BMAdd {
|
||||
|
||||
public Add(ItemStack input, ItemStack output, List<ItemStack> scraps) {
|
||||
super(TurntableRecipeCategory.UID, TurntableManager.INSTANCE, Lists.newArrayList(new TurntableRecipe(input, output, scraps)));
|
||||
super(TurntableRecipeCategory.UID, TurntableManager.INSTANCE, Lists.newArrayList(new TurntableRecipe(Block.getBlockFromItem(input.getItem()), input.getMetadata(), output.isEmpty() ? null : Block.getBlockFromItem(output.getItem()), output.isEmpty() ? 0 : output.getMetadata(), scraps)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue