mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Added config option to disable wheat replanting.
This commit is contained in:
parent
3109ee9c2a
commit
558e4f4dd0
@ -13,6 +13,7 @@ Version 2.0.00-dev
|
||||
+ Added offline user functionality to mmoedit
|
||||
+ Added bookshelves to list of blocks that don't trigger abilities.
|
||||
+ Added 'mcmmo.skills.repair.arcanebypass' permission node to bypass Arcane Repair and keep your enchantments
|
||||
+ Added config option to disable Herbalism's instant wheat replanting
|
||||
= Fixed Green Terra not awarding Triple Drops
|
||||
= Fixed ClassCastException from Taming preventDamage checks
|
||||
= Fixed issue with Blast Mining not seeing TNT for detonation due to snow
|
||||
|
@ -21,7 +21,7 @@ public class LoadProperties {
|
||||
woodcuttingrequiresaxe, anvilmessages, mayDowngradeEnchants,
|
||||
mayLoseEnchants, fishingDrops, aDisplayNames, pDisplayNames, enableSmoothToMossy,
|
||||
enableDirtToGrass, statsTracking, eventCallback, herbalismHungerBonus,
|
||||
repairArmor, repairTools, perLevelTools;
|
||||
repairArmor, repairTools, perLevelTools, wheatRegrowth;
|
||||
|
||||
public static String MySQLtablePrefix, MySQLuserName,
|
||||
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
||||
@ -210,6 +210,7 @@ public class LoadProperties {
|
||||
mlilypad = readInteger("Experience.Herbalism.Lily_Pads", 100);
|
||||
mvines = readInteger("Experience.Herbalism.Vines", 10);
|
||||
herbalismHungerBonus = readBoolean("Skills.Herbalism.Hunger_Bonus", true);
|
||||
wheatRegrowth = readBoolean("Skills.Herbalism.Instant_Wheat_Regrowth", true);
|
||||
|
||||
moak = readInteger("Experience.Woodcutting.Oak", 70);
|
||||
mbirch = readInteger("Experience.Woodcutting.Birch", 90);
|
||||
|
@ -149,8 +149,11 @@ public class Herbalism {
|
||||
if (data == CropState.RIPE.getData()) {
|
||||
mat = Material.WHEAT;
|
||||
xp = LoadProperties.mwheat;
|
||||
|
||||
if (LoadProperties.wheatRegrowth) {
|
||||
greenThumbWheat(block, player, event, plugin);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case MELON_BLOCK:
|
||||
|
@ -147,6 +147,7 @@ Skills:
|
||||
SmoothBrick_To_MossyBrick: true
|
||||
Dirt_To_Grass: true
|
||||
Hunger_Bonus: true
|
||||
Instant_Wheat_Regrowth: true
|
||||
Mining:
|
||||
Level_Cap: 0
|
||||
Requires_Pickaxe: true
|
||||
|
Loading…
Reference in New Issue
Block a user