Fixed Woodcutting accidentally using Mining double drop values.

This commit is contained in:
GJ 2013-01-22 01:56:54 -05:00
parent 5a9ca96a0f
commit 716c4d3783
3 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ Version 1.4.00-dev
= Fixed bug where Impact was applied incorrectly due to an inverted method call = Fixed bug where Impact was applied incorrectly due to an inverted method call
= Fixed bug where Impact improperly determined the defender's armor = Fixed bug where Impact improperly determined the defender's armor
= Fixed ArrayIndexOutOfBoundsException resulting from being unranked in a skill when using FlatFile = Fixed ArrayIndexOutOfBoundsException resulting from being unranked in a skill when using FlatFile
= Fixed Woodcutting accidentally using Mining double drop values.
! Changed how Tree Feller is handled, it should now put less stress on the CPU ! Changed how Tree Feller is handled, it should now put less stress on the CPU
! Changed Fisherman's Diet and Farmer's Diet to use two seperate config values ! Changed Fisherman's Diet and Farmer's Diet to use two seperate config values

View File

@ -101,7 +101,7 @@ public class AdvancedConfig extends ConfigLoader {
public int getHylianLucksMaxLevel() { return config.getInt("Skills.Herbalism.HylianLuck_MaxBonusLevel", 1000); } public int getHylianLucksMaxLevel() { return config.getInt("Skills.Herbalism.HylianLuck_MaxBonusLevel", 1000); }
/* MINING */ /* MINING */
public int getMiningDoubleDropChance() { return config.getInt("Skills.Mining.DoubleDrops_ChanceMax", 100); } public double getMiningDoubleDropChance() { return config.getDouble("Skills.Mining.DoubleDrops_ChanceMax", 100.0D); }
public int getMiningDoubleDropMaxLevel() { return config.getInt("Skills.Mining.DoubleDrops_MaxBonusLevel", 1000); } public int getMiningDoubleDropMaxLevel() { return config.getInt("Skills.Mining.DoubleDrops_MaxBonusLevel", 1000); }
public int getBlastMiningRank1() { return config.getInt("Skills.Mining.BlastMining_Rank1", 125); } public int getBlastMiningRank1() { return config.getInt("Skills.Mining.BlastMining_Rank1", 125); }

View File

@ -242,8 +242,8 @@ public class WoodCutting {
* @param block Block being broken * @param block Block being broken
*/ */
private static void woodCuttingProcCheck(Player player, Block block) { private static void woodCuttingProcCheck(Player player, Block block) {
final int MAX_CHANCE = ADVANCED_CONFIG.getMiningDoubleDropChance(); final int MAX_CHANCE = ADVANCED_CONFIG.getWoodcuttingDoubleDropChance();
final int MAX_BONUS_LEVEL = ADVANCED_CONFIG.getMiningDoubleDropMaxLevel(); final int MAX_BONUS_LEVEL = ADVANCED_CONFIG.getWoodcuttingDoubleDropMaxLevel();
byte type = block.getData(); byte type = block.getData();
if ((type & 0x4) == 0x4) if ((type & 0x4) == 0x4)