mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixing XP gain in fishing
This commit is contained in:
parent
22c5280d4e
commit
9aae4825cc
@ -68,7 +68,8 @@ public class FishingManager extends SkillManager {
|
|||||||
long currentTime = System.currentTimeMillis();
|
long currentTime = System.currentTimeMillis();
|
||||||
boolean hasFished = (currentTime < fishingTimestamp + FISHING_COOLDOWN_SECONDS);
|
boolean hasFished = (currentTime < fishingTimestamp + FISHING_COOLDOWN_SECONDS);
|
||||||
|
|
||||||
fishingTimestamp = currentTime;
|
if(hasFished == true)
|
||||||
|
fishingTimestamp = currentTime;
|
||||||
|
|
||||||
Location targetLocation = targetBlock.getLocation();
|
Location targetLocation = targetBlock.getLocation();
|
||||||
boolean sameTarget = (fishingTarget != null && fishingTarget.equals(targetLocation));
|
boolean sameTarget = (fishingTarget != null && fishingTarget.equals(targetLocation));
|
||||||
|
Loading…
Reference in New Issue
Block a user