mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Green thumb now converts cobble walls to mossy cobble walls.
This commit is contained in:
parent
01fb245da3
commit
c7b3b7a826
@ -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); }
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,7 @@ public class BlockChecks {
|
||||
case DIRT:
|
||||
return true;
|
||||
case SMOOTH_BRICK:
|
||||
case COBBLE_WALL:
|
||||
if (block.getData() == 0) {
|
||||
return true;
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user