mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Dividing by 4 was wrong.
This commit is contained in:
parent
1fe471b005
commit
e716e38386
@ -274,7 +274,7 @@ public class Herbalism {
|
|||||||
* @return true if the ability was successful, false otherwise
|
* @return true if the ability was successful, false otherwise
|
||||||
*/
|
*/
|
||||||
private static boolean convertGreenThumbPlants(BlockState blockState, int skillLevel) {
|
private static boolean convertGreenThumbPlants(BlockState blockState, int skillLevel) {
|
||||||
int greenThumbStage = Math.min(skillLevel, greenThumbStageMaxLevel) / 4;
|
int greenThumbStage = Math.min(skillLevel, greenThumbStageMaxLevel) / greenThumbStageChangeLevel;
|
||||||
|
|
||||||
switch(blockState.getType()) {
|
switch(blockState.getType()) {
|
||||||
case CROPS:
|
case CROPS:
|
||||||
|
Loading…
Reference in New Issue
Block a user