From 5ea34a895dc6be8e82067483fcaef0cf9da70182 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Fri, 15 Jan 2021 01:37:55 +0100 Subject: [PATCH] Fixed holograms cache --- .../slimefun4/core/services/holograms/HologramsService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/holograms/HologramsService.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/holograms/HologramsService.java index f8fa27b5a..75cb11223 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/holograms/HologramsService.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/holograms/HologramsService.java @@ -119,7 +119,7 @@ public class HologramsService { Hologram hologram = cache.get(position); // Check if the ArmorStand was cached and still exists - if (hologram != null && hologram.hasDespawned()) { + if (hologram != null && !hologram.hasDespawned()) { return hologram; } @@ -263,6 +263,7 @@ public class HologramsService { Hologram hologram = getHologram(loc, false); if (hologram != null) { + cache.remove(new BlockPosition(loc)); hologram.remove(); return true; } else {