diff --git a/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java b/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java index 0ed23889..cd329768 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java +++ b/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java @@ -141,8 +141,10 @@ public static Collection getCachedHolograms() { } if (map.containsKey("always-face-player")) { - boolean afp = (boolean) map.get("always-face-player"); - page.setAlwaysFacePlayer(afp); + Object afp = map.get("always-face-player"); + if (afp instanceof Boolean) { + page.setAlwaysFacePlayer((boolean) afp); + } } } return hologram;