fancyholograms v3: Migrate hologram even if world is not loaded

This commit is contained in:
Oliver
2025-07-24 20:27:58 +02:00
parent 5c2caf6e1f
commit 517422fdbc

View File

@@ -203,11 +203,6 @@ public class HologramData implements YamlData {
float pitch = (float) section.getDouble("location.pitch", 0); float pitch = (float) section.getDouble("location.pitch", 0);
World world = Bukkit.getWorld(worldName); World world = Bukkit.getWorld(worldName);
if (world == null) {
FancyHolograms.get().getFancyLogger().warn("Could not load hologram '" + name + "', because the world '" + worldName + "' is not loaded");
return false;
}
location = new Location(world, x, y, z, yaw, pitch); location = new Location(world, x, y, z, yaw, pitch);
visibilityDistance = section.getInt("visibility_distance", DEFAULT_VISIBILITY_DISTANCE); visibilityDistance = section.getInt("visibility_distance", DEFAULT_VISIBILITY_DISTANCE);
visibility = Optional.ofNullable(section.getString("visibility")) visibility = Optional.ofNullable(section.getString("visibility"))