From 6ecf31687e3e75ca5f3106e706518d9fcbd26096 Mon Sep 17 00:00:00 2001 From: d0by Date: Sat, 3 Sep 2022 23:46:41 +0200 Subject: [PATCH] Fix lines disappearing. (Revert experimental change) --- build.gradle | 2 +- .../eu/decentsoftware/holograms/api/holograms/Hologram.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ae24c163..c3843a10 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { defaultTasks 'build' group 'eu.decentsoftware.holograms' -version '2.7.0' +version '2.7.1' description 'Lightweight yet very powerful hologram plugin with many features and configuration options.' repositories { 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 eafe85d8..58554de3 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java +++ b/src/main/java/eu/decentsoftware/holograms/api/holograms/Hologram.java @@ -384,7 +384,7 @@ public boolean show(Player player, int pageIndex) { } else { // We need to run the task later on older versions as, if we don't, it causes issues with some holograms *randomly* becoming invisible. // I *think* this is from despawning and spawning the entities (with the same ID) in the same tick. - S.async(() -> showPageTo(player, page, pageIndex), 0L); + S.sync(() -> showPageTo(player, page, pageIndex), 0L); } return true; }