mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Stages are capped at 4.
This commit is contained in:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user