Small tweaks

This commit is contained in:
nossr50 2023-04-03 12:07:34 -07:00
parent e011f545a7
commit 7264e1a8d6
2 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ Version 2.1.219
Added 'Stripped_Cherry_Log' to woodcutting experience in experience.yml
Added 'Stripped_Cherry_Wood' to woodcutting experience in experience.yml
Added 'Skills.Mining.BlastMining.Bonus_Drops.Enabled' to advanced.yml to enable/disable bonus drops from Blast Mining
NOTE: There are plans to add experience for discovering items via the new brushing mechanic, but this will have to wait for new Spigot API to become available
NOTE: There are plans to add experience and potentially subskills for discovering items via the new brushing mechanic, but this will have to wait for new Spigot API to become available
Version 2.1.218
Fixed locale pt_BR type (thanks MrPowerGamerBR)

View File

@ -798,7 +798,6 @@ public class HerbalismManager extends SkillManager {
case "torchflower":
seed = Material.matchMaterial("TORCHFLOWER_SEEDS");
break;
default:
return false;
}
@ -854,17 +853,17 @@ public class HerbalismManager extends SkillManager {
return true;
}
switch (blockState.getType()) {
switch (blockState.getType().getKey().getKey()) {
case POTATOES:
case CARROTS:
case WHEAT:
case "potatoes":
case "carrots":
case "wheat":
finalAge = getGreenThumbStage(greenTerra);
break;
case BEETROOTS:
case NETHER_WART:
case "beetroots":
case "nether_wart":
if (greenTerra || greenThumbStage > 2) {
finalAge = 2;
@ -875,9 +874,9 @@ public class HerbalismManager extends SkillManager {
else {
finalAge = 0;
}
break;
break;
case COCOA:
case "cocoa":
if (getGreenThumbStage(greenTerra) >= 2) {
finalAge = 1;
@ -891,6 +890,7 @@ public class HerbalismManager extends SkillManager {
return false;
}
//Start the delayed replant
startReplantTask(finalAge, blockBreakEvent, blockState, false);
return true;