Skip to content

Commit

Permalink
api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Dec 3, 2021
1 parent fd03d51 commit 924ce7a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ public static Collection<Hologram> 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;
Expand Down

0 comments on commit 924ce7a

Please sign in to comment.