diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/hologram/HologramDecentHolograms.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/hologram/HologramDecentHolograms.kt index 5951d1ada..a4838c54a 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/hologram/HologramDecentHolograms.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/integrations/hologram/HologramDecentHolograms.kt @@ -27,7 +27,10 @@ class HologramDecentHolograms : HologramIntegration { } override fun setContents(contents: List) { - DHAPI.setHologramLines(DHAPI.getHologram(id), contents) + val hologram = DHAPI.getHologram(id) + if (hologram != null) { + DHAPI.setHologramLines(hologram, contents) + } } } }