mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-25 17:01:28 +01:00
Fix conversion error in challenges
This commit is contained in:
parent
d8e38a2550
commit
92ea9f4404
@ -244,7 +244,7 @@ public class Challenge {
|
||||
Island is = SkyBlock.getInstance().getIslandManager().getIsland(p);
|
||||
// Player doesn't have an island
|
||||
if (is != null && obj instanceof Number) {
|
||||
return is.getLevel().getLevel() >= (Long) obj;
|
||||
return is.getLevel().getLevel() >= ((Number) obj).longValue();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user