From 9aae4825ccdd2f9b93764898670a5f7f03897e61 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 26 Jan 2019 14:34:28 -0800 Subject: [PATCH] Fixing XP gain in fishing --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index f19e12c4b..49792ae63 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -68,7 +68,8 @@ public class FishingManager extends SkillManager { long currentTime = System.currentTimeMillis(); boolean hasFished = (currentTime < fishingTimestamp + FISHING_COOLDOWN_SECONDS); - fishingTimestamp = currentTime; + if(hasFished == true) + fishingTimestamp = currentTime; Location targetLocation = targetBlock.getLocation(); boolean sameTarget = (fishingTarget != null && fishingTarget.equals(targetLocation));