From 7d826a0cdb2dbb009e40041422daf97f28bb6fd1 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Wed, 13 Feb 2013 23:35:53 -0500 Subject: [PATCH] Add permission check for green thumb effects during Green Terra ability --- src/main/java/com/gmail/nossr50/listeners/BlockListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 0c17d8522..260e75c39 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -328,7 +328,8 @@ public class BlockListener implements Listener { * * We don't need to check permissions here because they've already been checked for the ability to even activate. */ - if (profile.getAbilityMode(AbilityType.GREEN_TERRA) && BlockChecks.canMakeMossy(block)) { + // Except right here, which is for the Green Thumb activation, not the normal effect of Green Terra + if (profile.getAbilityMode(AbilityType.GREEN_TERRA) && BlockChecks.canMakeMossy(block) && Permissions.greenThumbBlocks(player)) { Herbalism.greenTerra(player, block); } else if (profile.getAbilityMode(AbilityType.GIGA_DRILL_BREAKER) && SkillTools.triggerCheck(player, block, AbilityType.GIGA_DRILL_BREAKER)) {