Skip to content

Commit

Permalink
Fixed homes and warps require worlds to be loaded when islands are lo…
Browse files Browse the repository at this point in the history
…aded (#1170)
  • Loading branch information
OmerBenGera committed Jun 23, 2022
1 parent c310b7b commit d901dad
Showing 1 changed file with 0 additions and 21 deletions.
Expand Up @@ -273,13 +273,6 @@ public static void deserializeWarps(DatabaseBridge databaseBridge, DatabaseCache
return;
}

if (location.get().getWorld() == null) {
SuperiorSkyblockPlugin.log(
String.format("&cCannot load warps with invalid world %s for %s, skipping...",
((LazyWorldLocation) location.get()).getWorldName(), uuid.get()));
return;
}

CachedWarpInfo cachedWarpInfo = new CachedWarpInfo();
cachedWarpInfo.name = name.get();
cachedWarpInfo.category = islandWarp.getString("category").orElse("");
Expand Down Expand Up @@ -543,13 +536,6 @@ public static void deserializeIslandHomes(DatabaseBridge databaseBridge, Databas
return;
}

if (location.get().getWorld() == null) {
SuperiorSkyblockPlugin.log(
String.format("&cCannot load island homes with invalid world %s for %s, skipping...",
((LazyWorldLocation) location.get()).getWorldName(), uuid.get()));
return;
}

CachedIslandInfo cachedIslandInfo = databaseCache.computeIfAbsentInfo(uuid.get(), CachedIslandInfo::new);
cachedIslandInfo.islandHomes[environment.get()] = location.get();
});
Expand Down Expand Up @@ -580,13 +566,6 @@ public static void deserializeVisitorHomes(DatabaseBridge databaseBridge, Databa
return;
}

if (location.get().getWorld() == null) {
SuperiorSkyblockPlugin.log(
String.format("&cCannot load island homes with invalid world %s for %s, skipping...",
((LazyWorldLocation) location.get()).getWorldName(), uuid.get()));
return;
}

CachedIslandInfo cachedIslandInfo = databaseCache.computeIfAbsentInfo(uuid.get(), CachedIslandInfo::new);
cachedIslandInfo.visitorHomes[environment.get()] = location.get();
});
Expand Down

0 comments on commit d901dad

Please sign in to comment.