Skip to content

Commit

Permalink
chore: bump geary
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Dec 5, 2024
1 parent eac90e9 commit 34ab448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
gearyPaper = "0.31.0"
blocky = "0.10.15"
gearyPaper = "0.31.3"
blocky = "0.10.16"

[libraries]
geary-papermc = { module = "com.mineinabyss:geary-papermc", version.ref = "gearyPaper" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import org.bukkit.entity.Player
fun Geary.bonfireEffectSystem() = system(object : Query(this) {
val player by get<Player>()
val effect by get<BonfireEffectArea>()
}).every(10.ticks).exec {
}).every(10.ticks).exec { q ->
// Check if still near a bonfire
player.location.getNearbyEntitiesByType(ItemDisplay::class.java, bonfire.config.effectRadius).firstOrNull {
it.isBonfire && it.uniqueId == effect.uuid
q.player.location.getNearbyEntitiesByType(ItemDisplay::class.java, bonfire.config.effectRadius).firstOrNull {
it.isBonfire && it.uniqueId == q.effect.uuid
}?.let {
player.location.world.spawnParticle(
q.player.location.world.spawnParticle(
listOf(Particle.SOUL, Particle.SOUL_FIRE_FLAME).random(),
player.location, 1, 0.5, 1.0, 0.5, 0.0
q.player.location, 1, 0.5, 1.0, 0.5, 0.0
)

player.saturation = bonfire.config.effectStrength
player.saturatedRegenRate = bonfire.config.effectRegenRate
q.player.saturation = bonfire.config.effectStrength
q.player.saturatedRegenRate = bonfire.config.effectRegenRate
}
}

0 comments on commit 34ab448

Please sign in to comment.