From d64399df49174d11f457d60cc4cccddc810f0e35 Mon Sep 17 00:00:00 2001 From: ProgrammingAtDawn <11708354+ProgrammingAtDawn@users.noreply.github.com> Date: Mon, 15 Jan 2018 22:47:41 +0100 Subject: [PATCH] Calculate experience gain before processing green thumb. --- .../gmail/nossr50/skills/herbalism/HerbalismManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java index 19d1a6df8..628f6e158 100644 --- a/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java @@ -148,10 +148,6 @@ public class HerbalismManager extends SkillManager { } } else { - if (Permissions.greenThumbPlant(player, material)) { - processGreenThumbPlants(blockState, greenTerra); - } - if(material == Material.CHORUS_FLOWER && blockState.getRawData() != 5) { return; } @@ -165,6 +161,10 @@ public class HerbalismManager extends SkillManager { amount = Herbalism.calculateMultiBlockPlantDrops(blockState); xp *= amount; } + + if (Permissions.greenThumbPlant(player, material)) { + processGreenThumbPlants(blockState, greenTerra); + } } applyXpGain(xp, XPGainReason.PVE);