Fix conversion error in challenges

This commit is contained in:
Fabrizio La Rosa 2020-06-20 01:42:10 +02:00
parent d8e38a2550
commit 92ea9f4404

View File

@ -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;
}