mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-01 06:53:37 +01:00
Check for null world
This commit is contained in:
parent
5c2f2ecfc7
commit
e8b4129c3a
@ -656,6 +656,10 @@ public class ChallengesManager
|
||||
public void migrateDatabase(User user, World world)
|
||||
{
|
||||
world = Util.getWorld(world);
|
||||
if (world == null) {
|
||||
this.addon.logError("No such world!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (user.isPlayer())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user