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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user