mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Make Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable
Closes issue #120
This commit is contained in:
parent
17bacbf9d6
commit
b4b0bbd081
@ -4,6 +4,7 @@ Changelog:
|
||||
Version 2.0-dev
|
||||
- Removed legacy Permission & PEX support. SuperPerms support only now.
|
||||
- Added framework for new Mining sub-skill: Blast Mining.
|
||||
- Made Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable (Issue #120)
|
||||
|
||||
Version 1.2.10
|
||||
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
|
||||
|
@ -42,7 +42,8 @@ public class LoadProperties {
|
||||
mayLoseEnchants, fishingDrops, leatherArmor, ironArmor, goldArmor,
|
||||
diamondArmor, woodenTools, stoneTools, ironTools, goldTools,
|
||||
diamondTools, enderPearl, blazeRod, records, glowstoneDust,
|
||||
fishingDiamonds, aDisplayNames, pDisplayNames;
|
||||
fishingDiamonds, aDisplayNames, pDisplayNames, enableSmoothToMossy,
|
||||
enableDirtToGrass;
|
||||
|
||||
public static String MySQLtablePrefix, MySQLuserName,
|
||||
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
||||
@ -298,6 +299,8 @@ public class LoadProperties {
|
||||
enableRegen = readBoolean("General.HP_Regeneration.Enabled", true);
|
||||
|
||||
enableCobbleToMossy = readBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
|
||||
enableSmoothToMossy = readBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true);
|
||||
enableDirtToGrass = readBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true);
|
||||
|
||||
xpGainMultiplier = readInteger("Experience.Gains.Multiplier.Global", 1);
|
||||
toolsLoseDurabilityFromAbilities = readBoolean("Abilities.Tools.Durability_Loss_Enabled", true);
|
||||
|
@ -229,19 +229,22 @@ public class mcPlayerListener implements Listener
|
||||
switch(block.getType())
|
||||
{
|
||||
case COBBLESTONE:
|
||||
if(LoadProperties.enableCobbleToMossy)
|
||||
{
|
||||
if(LoadProperties.enableCobbleToMossy) {
|
||||
block.setType(Material.MOSSY_COBBLESTONE);
|
||||
pass = true;
|
||||
}
|
||||
break;
|
||||
case DIRT:
|
||||
pass = true;
|
||||
block.setType(Material.GRASS);
|
||||
if(LoadProperties.enableDirtToGrass) {
|
||||
pass = true;
|
||||
block.setType(Material.GRASS);
|
||||
}
|
||||
break;
|
||||
case SMOOTH_BRICK:
|
||||
pass = true;
|
||||
block.setData((byte)1);
|
||||
if(LoadProperties.enableSmoothToMossy) {
|
||||
pass = true;
|
||||
block.setData((byte)1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(pass == false)
|
||||
|
@ -119,6 +119,8 @@ Skills:
|
||||
Level_Cap: 0
|
||||
Green_Thumb:
|
||||
Cobble_To_Mossy: true
|
||||
SmoothBrick_To_MossyBrick: true
|
||||
Dirt_To_Grass: true
|
||||
Mining:
|
||||
Level_Cap: 0
|
||||
Requires_Pickaxe: true
|
||||
|
Loading…
Reference in New Issue
Block a user