mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
This was redundant was redundant
This commit is contained in:
parent
6d5835849f
commit
fd138eb0b5
@ -256,7 +256,7 @@ public class Herbalism {
|
|||||||
float chance = (float) ((greenThumbMaxChance / greenThumbMaxLevel) * herbLevel);
|
float chance = (float) ((greenThumbMaxChance / greenThumbMaxLevel) * herbLevel);
|
||||||
if (chance > greenThumbMaxChance) chance = (float) greenThumbMaxChance;
|
if (chance > greenThumbMaxChance) chance = (float) greenThumbMaxChance;
|
||||||
|
|
||||||
if (hasSeeds && profile.getAbilityMode(AbilityType.GREEN_TERRA) || hasSeeds && (chance > Misc.getRandom().nextInt(activationChance))) {
|
if (hasSeeds && (profile.getAbilityMode(AbilityType.GREEN_TERRA) || chance > Misc.getRandom().nextInt(activationChance))) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
switch(type) {
|
switch(type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user