mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancyholograms v3: Migrate hologram even if world is not loaded
This commit is contained in:
@@ -203,11 +203,6 @@ public class HologramData implements YamlData {
|
||||
float pitch = (float) section.getDouble("location.pitch", 0);
|
||||
|
||||
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);
|
||||
visibilityDistance = section.getInt("visibility_distance", DEFAULT_VISIBILITY_DISTANCE);
|
||||
visibility = Optional.ofNullable(section.getString("visibility"))
|
||||
|
||||
Reference in New Issue
Block a user