1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-05-16 15:16:23 +02:00

Stages are capped at 4.

This commit is contained in:
GJ 2013-02-24 16:35:33 -05:00
parent e716e38386
commit 1eb225cae1

@ -274,7 +274,7 @@ public class Herbalism {
* @return true if the ability was successful, false otherwise
*/
private static boolean convertGreenThumbPlants(BlockState blockState, int skillLevel) {
int greenThumbStage = Math.min(skillLevel, greenThumbStageMaxLevel) / greenThumbStageChangeLevel;
int greenThumbStage = Math.min(Math.min(skillLevel, greenThumbStageMaxLevel) / greenThumbStageChangeLevel, 4);
switch(blockState.getType()) {
case CROPS: