Skip to content

Commit

Permalink
Fix weaponry overwriting the attack-modifier variable used by ITT and…
Browse files Browse the repository at this point in the history
… other stuff with the ranged modifier
  • Loading branch information
bonii-xx committed Feb 8, 2015
1 parent 58031bb commit f22b1c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/weaponry/TinkerWeaponry.java
Expand Up @@ -98,6 +98,7 @@ public class TinkerWeaponry {
public static Boneana boneana;

// other stuff
public static ModAttack modAttack;
public static Random random = new Random();


Expand Down Expand Up @@ -125,8 +126,8 @@ public void init(FMLInitializationEvent event)
ModifyBuilder.registerModifier(new ModWindup(2, new ItemStack[] { redstoneItem, redstoneBlock }, new int[] { 1, 9 }));
ModifyBuilder.registerModifier(new ModAmmoRestock());

TinkerTools.modAttack = new ModAttack("Quartz", 11, new ItemStack[] { new ItemStack(Items.quartz), new ItemStack(Blocks.quartz_block, 1, Short.MAX_VALUE) }, new int[] { 1, 4 }, true);
ModifyBuilder.registerModifier(TinkerTools.modAttack);
modAttack = new ModAttack("Quartz", 11, new ItemStack[] { new ItemStack(Items.quartz), new ItemStack(Blocks.quartz_block, 1, Short.MAX_VALUE) }, new int[] { 1, 4 }, true);
ModifyBuilder.registerModifier(modAttack);

TConstructRegistry.registerActiveToolMod(new WeaponryActiveToolMod());

Expand Down

0 comments on commit f22b1c6

Please sign in to comment.