9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2025-12-31 12:56:31 +00:00

Fixed potential exploit in exploration

This commit is contained in:
Auxilor
2021-12-17 20:53:37 +00:00
parent eaa0459ae4
commit 93b4991c4e

View File

@@ -33,6 +33,10 @@ class SkillExploration : Skill(
return
}
if (from.distance(to) > 100) {
return
}
val speed = from.distance(to) / 0.2158
var xp = this.config.getDouble("base-xp-to-give")
if (this.config.getBool("multiply-xp-by-speed")) {