mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 17:23:42 +01:00 
			
		
		
		
	Green thumb now converts cobble walls to mossy cobble walls.
This commit is contained in:
		| @@ -169,6 +169,7 @@ public class Config extends ConfigLoader { | |||||||
|     public int getHerbalismXPPotato() { return config.getInt("Experience.Herbalism.Potato", 50); } |     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 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 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); } |     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 |                 // Don't award double drops to mossified cobblestone | ||||||
|                 mcMMO.placeStore.setTrue(block); |                 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: |         case DIRT: | ||||||
|             return true; |             return true; | ||||||
|         case SMOOTH_BRICK: |         case SMOOTH_BRICK: | ||||||
|  |         case COBBLE_WALL: | ||||||
|             if (block.getData() == 0) { |             if (block.getData() == 0) { | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -151,6 +151,7 @@ Skills: | |||||||
|         Level_Cap: 0 |         Level_Cap: 0 | ||||||
|         Green_Thumb: |         Green_Thumb: | ||||||
|             Cobble_To_Mossy: true |             Cobble_To_Mossy: true | ||||||
|  |             CobbleWall_To_MossyWall: true | ||||||
|             SmoothBrick_To_MossyBrick: true |             SmoothBrick_To_MossyBrick: true | ||||||
|             Dirt_To_Grass: true |             Dirt_To_Grass: true | ||||||
|     Mining: |     Mining: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Glitchfinder
					Glitchfinder