Fixing XP gain in fishing

This commit is contained in:
nossr50 2019-01-26 14:34:28 -08:00
parent 22c5280d4e
commit 9aae4825cc

View File

@ -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));