Fix Crash when adding trades when items are disabled.
This commit is contained in:
parent
5bf8e9d7d0
commit
4abe3e8807
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue