mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancyholograms v3: Add another world check
This commit is contained in:
@@ -118,6 +118,10 @@ public class JsonAdapter {
|
||||
}
|
||||
|
||||
public static HologramData fromJson(JsonDataUnion data) {
|
||||
if (!data.hologram_data().worldName().equals(data.hologram_data().location().world())) {
|
||||
throw new IllegalArgumentException("World name in hologram data does not match location world");
|
||||
}
|
||||
|
||||
Location loc = new Location(
|
||||
Bukkit.getWorld(data.hologram_data().worldName()),
|
||||
data.hologram_data().location().x(),
|
||||
|
||||
Reference in New Issue
Block a user