From bbc08034f134a0a3a00c7821d1b17336527dfbb8 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 17 Jul 2021 10:43:17 +0200 Subject: [PATCH] Fix hologram delete --- .../plugin/hologram/base/BaseHologramManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/base/BaseHologramManager.java b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/base/BaseHologramManager.java index 38b03e5f..42069bda 100644 --- a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/base/BaseHologramManager.java +++ b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/base/BaseHologramManager.java @@ -24,9 +24,8 @@ public abstract class BaseHologramManager { } public void deleteHologram(H hologram) { - Preconditions.checkArgument(hologram.isDeleted(), "hologram must be deleted first"); - holograms.remove(hologram); hologram.setDeleted(); + holograms.remove(hologram); } public List getHolograms() {