Green thumb now converts cobble walls to mossy cobble walls.

This commit is contained in:
Glitchfinder 2012-11-04 16:06:33 -08:00
parent 01fb245da3
commit c7b3b7a826
4 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,7 @@ public class Config extends ConfigLoader {
public int getHerbalismXPPotato() { return config.getInt("Experience.Herbalism.Potato", 50); }
public boolean getHerbalismGreenThumbCobbleToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true); }
public boolean getHerbalismGreenThumbCobbleWallToMossyWall() { return config.getBoolean("Skills.Herbalism.Green_Thumb.CobbleWall_To_MossyWall", true); }
public boolean getHerbalismGreenThumbSmoothbrickToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true); }
public boolean getHerbalismGreenThumbDirtToGrass() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true); }

View File

@ -65,6 +65,9 @@ public class Herbalism {
// Don't award double drops to mossified cobblestone
mcMMO.placeStore.setTrue(block);
}
else if (Config.getInstance().getHerbalismGreenThumbCobbleWallToMossyWall() && type == Material.COBBLESTONE) {
block.setData((byte) 1);
}
}
}

View File

@ -154,6 +154,7 @@ public class BlockChecks {
case DIRT:
return true;
case SMOOTH_BRICK:
case COBBLE_WALL:
if (block.getData() == 0) {
return true;
}

View File

@ -151,6 +151,7 @@ Skills:
Level_Cap: 0
Green_Thumb:
Cobble_To_Mossy: true
CobbleWall_To_MossyWall: true
SmoothBrick_To_MossyBrick: true
Dirt_To_Grass: true
Mining: