fancyholograms v3: Add another world check

This commit is contained in:
Oliver
2025-07-24 21:01:44 +02:00
parent 58ac34311d
commit 29e4e70f37

View File

@@ -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(),