mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Adding missing Double Drop entries for Woodcutting
This commit is contained in:
@ -463,18 +463,18 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
/*
|
||||
* SKILL SETTINGS
|
||||
*/
|
||||
public boolean getDoubleDropsEnabled(PrimarySkillType skill, Material material) { return config.getBoolean("Double_Drops." + StringUtils.getCapitalized(skill.toString()) + "." + StringUtils.getPrettyItemString(material).replace(" ", "_")); }
|
||||
public boolean getDoubleDropsEnabled(PrimarySkillType skill, Material material) { return config.getBoolean("Bonus_Drops." + StringUtils.getCapitalized(skill.toString()) + "." + StringUtils.getPrettyItemString(material).replace(" ", "_")); }
|
||||
|
||||
public boolean getDoubleDropsDisabled(PrimarySkillType skill) {
|
||||
String skillName = StringUtils.getCapitalized(skill.toString());
|
||||
ConfigurationSection section = config.getConfigurationSection("Double_Drops." + skillName);
|
||||
ConfigurationSection section = config.getConfigurationSection("Bonus_Drops." + skillName);
|
||||
if (section == null)
|
||||
return false;
|
||||
Set<String> keys = section.getKeys(false);
|
||||
boolean disabled = true;
|
||||
|
||||
for (String key : keys) {
|
||||
if (config.getBoolean("Double_Drops." + skillName + "." + key)) {
|
||||
if (config.getBoolean("Bonus_Drops." + skillName + "." + key)) {
|
||||
disabled = false;
|
||||
break;
|
||||
}
|
||||
@ -540,7 +540,7 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
public double getTamingCOTWRange() { return config.getDouble("Skills.Taming.Call_Of_The_Wild.Range", 40.0D); }
|
||||
|
||||
/* Woodcutting */
|
||||
public boolean getWoodcuttingDoubleDropsEnabled(BlockData material) { return config.getBoolean("Double_Drops.Woodcutting." + StringUtils.getFriendlyConfigBlockDataString(material)); }
|
||||
public boolean getWoodcuttingDoubleDropsEnabled(BlockData material) { return config.getBoolean("Bonus_Drops.Woodcutting." + StringUtils.getFriendlyConfigBlockDataString(material)); }
|
||||
public boolean getTreeFellerSoundsEnabled() { return config.getBoolean("Skills.Woodcutting.Tree_Feller_Sounds", true); }
|
||||
public int getWoodcuttingGate() { return config.getInt("Skills.Woodcutting.Ability_Activation_Level_Gate", 10); }
|
||||
|
||||
|
@ -426,7 +426,7 @@ Skills:
|
||||
#
|
||||
# Settings for Double Drops
|
||||
###
|
||||
Double_Drops:
|
||||
Bonus_Drops:
|
||||
Herbalism:
|
||||
Beetroots: true
|
||||
Beetroot: true
|
||||
@ -490,11 +490,17 @@ Double_Drops:
|
||||
Stone: true
|
||||
Cobblestone: true
|
||||
Woodcutting:
|
||||
Acacia_Wood: true
|
||||
Acacia_Log: true
|
||||
Birch_Wood: true
|
||||
Birch_Log: true
|
||||
Dark_Oak_Wood: true
|
||||
Dark_Oak_Log: true
|
||||
Oak_Wood: true
|
||||
Oak_Log: true
|
||||
Jungle_Wood: true
|
||||
Jungle_Log: true
|
||||
Spruce_Wood: true
|
||||
Spruce_Log: true
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user