Explorar el Código

Fixed Green Thumb not checking rank 4 on wheat

bm01 hace 12 años
padre
commit
f496ecf7b1

+ 1 - 0
Changelog.txt

@@ -33,6 +33,7 @@ Version 1.4.00-dev
  + Added '/hardcore' and '/vampirism' commands for toggling these modes on or off.
  + Added Block Cracker to Unarmed's Berserk, turn smooth brick into cracked smooth brick
  + Added config option to disable automatic zip backups.
+ = Fixed Green Thumb on wheat not working properly at rank 4
  = Fixed Green Terra not also checking Green Thumb permissions
  = Fixed bug where splash potions could raise a player's unarmed level
  = Fixed bug where fired arrows could raise skill levels other than Archery

+ 1 - 12
src/main/java/com/gmail/nossr50/skills/herbalism/GreenThumbTimer.java

@@ -40,18 +40,7 @@ public class GreenThumbTimer implements Runnable {
         case POTATO:
             //This replants the wheat at a certain stage in development based on Herbalism Skill
             if (!this.profile.getAbilityMode(AbilityType.GREEN_TERRA)) {
-                if (greenThumbStage == 3) {
-                    this.block.setData(CropState.MEDIUM.getData());
-                }
-                else if (greenThumbStage == 2) {
-                    this.block.setData(CropState.SMALL.getData());
-                }
-                else if (greenThumbStage == 1) {
-                    this.block.setData(CropState.VERY_SMALL.getData());
-                }
-                else {
-                    this.block.setData(CropState.GERMINATED.getData());
-                }
+                this.block.setData((byte) greenThumbStage);
             }
             else {
                 this.block.setData(CropState.MEDIUM.getData());