diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/hologram/HologramCMI.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/hologram/HologramCMI.kt index 88580d7c..1559bae9 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/hologram/HologramCMI.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/hologram/HologramCMI.kt @@ -6,18 +6,19 @@ import com.willfp.eco.core.integrations.hologram.Hologram import com.willfp.eco.core.integrations.hologram.HologramWrapper import net.Zrips.CMILib.Container.CMILocation import org.bukkit.Location -import java.util.* +import java.util.UUID @Suppress("DEPRECATION") class HologramCMI : HologramWrapper { override fun createHologram(location: Location, contents: MutableList): Hologram { val cmiHolo = CMIHologram(UUID.randomUUID().toString(), CMILocation(location)) - cmiHolo.enable() CMI.getInstance().hologramManager.addHologram(cmiHolo) val holo = HologramImplCMI(cmiHolo) holo.setContents(contents) + cmiHolo.enable() + return holo }