mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-27 09:51:36 +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);
|
Island is = SkyBlock.getInstance().getIslandManager().getIsland(p);
|
||||||
// Player doesn't have an island
|
// Player doesn't have an island
|
||||||
if (is != null && obj instanceof Number) {
|
if (is != null && obj instanceof Number) {
|
||||||
return is.getLevel().getLevel() >= (Long) obj;
|
return is.getLevel().getLevel() >= ((Number) obj).longValue();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user