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
@@ -32,6 +32,7 @@ import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Items;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.inventory.InventoryCrafting;
@@ -1225,13 +1226,13 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
BAD_BLOCKS.add( directedBlock ); // nope!
}
if( what.getItem() != null )
if( what.getItem() != Items.AIR )
{
return what.getUnlocalizedName();
}
final Item item = Item.getItemFromBlock( directedBlock );
if( item == null )
if( item == Items.AIR )
{
return directedBlock.getUnlocalizedName();
}