Skip to content

Commit

Permalink
fix(event): store type of TwilightRunnable for runnables rather than …
Browse files Browse the repository at this point in the history
…BukkitTask
  • Loading branch information
joshbker committed Oct 8, 2024
1 parent 9a85c75 commit 893c6cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/gg/flyte/twilight/event/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import gg.flyte.twilight.event.custom.interact.listener.InteractEventListener
import gg.flyte.twilight.event.custom.movement.listener.EntityMoveEventListener
import gg.flyte.twilight.extension.applyForEach
import gg.flyte.twilight.inventory.GUIListener
import gg.flyte.twilight.scheduler.TwilightRunnable
import org.bukkit.event.*
import org.bukkit.scheduler.BukkitTask
import java.time.Instant
Expand Down Expand Up @@ -52,7 +53,7 @@ open class CustomTwilightListener {
* The list of events registered to this custom Twilight Event
*/
val events = mutableListOf<TwilightListener>()
val runnables = mutableListOf<BukkitTask>()
val runnables = mutableListOf<TwilightRunnable>()

/**
* Unregisters this custom Twilight listener, removing all registered events and associated runnables.
Expand Down

0 comments on commit 893c6cb

Please sign in to comment.