Fix Crash when adding trades when items are disabled.

This commit is contained in:
AlgorithmX2 2014-05-07 12:49:32 -05:00
parent 5bf8e9d7d0
commit 4abe3e8807

View file

@ -42,6 +42,9 @@ public class AETrading implements IVillageTradeHandler
private void addMerchent(MerchantRecipeList list, ItemStack item, int emera, Random rand, int greed)
{
if ( item == null )
return;
// Sell
ItemStack From = item.copy();
ItemStack To = new ItemStack( Items.emerald );