Fix facade recipes. Hopefully the last null check fix.

This commit is contained in:
Gunther De Wachter
2017-06-27 20:39:06 +02:00
parent b819fe4adb
commit 61b81fc802
52 changed files with 101 additions and 83 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ import java.util.List;
import com.google.common.base.Preconditions;
import net.minecraft.block.Block;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@@ -167,7 +168,7 @@ public class Ingredient implements IIngredient
if( blk != null )
{
final Item it = Item.getItemFromBlock( blk );
if( it != null )
if( it != Items.AIR )
{
return this.makeItemStack( it, this.qty, this.meta, this.nbt );
}