mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-11-26 06:43:05 +00:00
Ensure that random levelup bonuses apply the correct attack modifier (not the one for gloves ;o)
This commit is contained in:
1 parent
70622717b0
commit
9f2f987f76
1 file changed
+7
-1
@@ -109,7 +109,6 @@ public class RandomBonusses {
|
||||
{
|
||||
ItemStack[] quarzStack = new ItemStack[]{new ItemStack(Items.quartz, 1)};
|
||||
|
||||
// todo: use correct attack modifier
|
||||
return addGenericModifier(player, tool, "ModAttack", quarzStack, 24, "\u00a79You take the time to sharpen the dull edges of the blade (+1 attack)");
|
||||
}
|
||||
|
||||
@@ -194,6 +193,13 @@ public class RandomBonusses {
|
||||
if(modCache.containsKey(key))
|
||||
return modCache.get(key);
|
||||
|
||||
if(key.equals("ModAttack"))
|
||||
{
|
||||
modCache.put(key, TinkerTools.modAttack);
|
||||
return TinkerTools.modAttack;
|
||||
}
|
||||
|
||||
|
||||
for(ItemModifier modifier : ModifyBuilder.instance.itemModifiers)
|
||||
if(modifier.key.equals(key)) {
|
||||
modCache.put(key, modifier);
|
||||
|
||||
Reference in new issue
Block a user