Fix weaponry overwriting the attack-modifier variable used by ITT and other stuff with the ranged modifier

This commit is contained in:
Bernhard Bonigl committed 2015-02-08 21:34:08 +01:00
1 parent 58031bb521
commit f22b1c6666
1 file changed
+3 -2
@@ -98,6 +98,7 @@ public class TinkerWeaponry {
public static Boneana boneana;
// other stuff
public static ModAttack modAttack;
public static Random random = new Random();
@@ -125,8 +126,8 @@ public class TinkerWeaponry {
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());