From 5ccd234e08724dfb90e5ad416771d87f591bc4fe Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 16 Dec 2013 18:00:50 +0200 Subject: stuff with rings and stuff --- common/darkknight/jewelrycraft/item/ItemThiefGloves.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/darkknight/jewelrycraft/item/ItemThiefGloves.java') diff --git a/common/darkknight/jewelrycraft/item/ItemThiefGloves.java b/common/darkknight/jewelrycraft/item/ItemThiefGloves.java index 97d83cd..3621dae 100644 --- a/common/darkknight/jewelrycraft/item/ItemThiefGloves.java +++ b/common/darkknight/jewelrycraft/item/ItemThiefGloves.java @@ -37,8 +37,9 @@ public class ItemThiefGloves extends ItemBase while(iterator.hasNext()) { MerchantRecipe recipe = (MerchantRecipe)iterator.next(); + int toolUses = (Integer) ReflectionHelper.getPrivateValue(MerchantRecipe.class, recipe, "toolUses", "field_77400_d"); int quantity; - if(recipe.getItemToSell().isStackable()) quantity = recipe.getItemToSell().stackSize * 7; + if(recipe.getItemToSell().isStackable()) quantity = recipe.getItemToSell().stackSize * (7 - toolUses); else quantity = 1; ItemStack s = new ItemStack(recipe.getItemToSell().itemID, quantity, recipe.getItemToSell().getItemDamage()); s.setTagCompound(recipe.getItemToSell().getTagCompound()); -- cgit v1.2.3