Skip to content

Commit

Permalink
fix: effect-system not being registered
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jul 31, 2024
1 parent 9c734a6 commit c6defee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/kotlin/com/mineinabyss/bonfire/BonfirePlugin.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package com.mineinabyss.bonfire

import com.mineinabyss.blocky.systems.createFurnitureOutlineSystem
import com.mineinabyss.bonfire.extensions.BonfireMessages
import com.mineinabyss.bonfire.listeners.BonfireListener
import com.mineinabyss.bonfire.listeners.DebugListener
import com.mineinabyss.bonfire.listeners.FixUntrackedBonfiresListener
import com.mineinabyss.bonfire.listeners.PlayerListener
import com.mineinabyss.bonfire.systems.bonfireEffectSystem
import com.mineinabyss.geary.addons.GearyPhase
import com.mineinabyss.geary.autoscan.autoscan
import com.mineinabyss.geary.modules.geary
import com.mineinabyss.idofront.config.config
Expand Down Expand Up @@ -34,6 +37,10 @@ class BonfirePlugin : JavaPlugin() {
FixUntrackedBonfiresListener()
)

geary.pipeline.runOnOrAfter(GearyPhase.INIT_SYSTEMS) {
geary.bonfireEffectSystem()
}

}

fun registerBonfireContext() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import org.bukkit.Particle
import org.bukkit.entity.ItemDisplay
import org.bukkit.entity.Player

@AutoScan
fun GearyModule.bonfireEffectSystem() = system(object : Query() {
val player by get<Player>()
val effect by get<BonfireEffectArea>()
Expand Down

0 comments on commit c6defee

Please sign in to comment.