Stages are capped at 4.

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

View File

@ -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: