Fixes #3338: Upgrade inventory dupe bug due to ignoring player hand. (#3340)

This commit is contained in:
yueh
2018-01-28 12:50:20 +01:00
committed by GitHub
parent f0e45c7a3c
commit da6d8ba9a8
@@ -318,7 +318,7 @@ public final class ItemMaterial extends AEBaseItem implements IStorageComponent,
}
final InventoryAdaptor ad = new AdaptorItemHandler( upgrades );
player.inventory.setInventorySlotContents( player.inventory.currentItem, ad.addItems( player.getHeldItem( hand ) ) );
player.setHeldItem( hand, ad.addItems( player.getHeldItem( hand ) ) );
return EnumActionResult.SUCCESS;
}
}