Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 8, 2024
2 parents e97b9e0 + a8a91c9 commit 5508c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ object EffectAddHolderInRadius : Effect<HolderTemplate>("add_holder_in_radius")

init {
registerGenericHolderProvider { dispatcher ->
if (holders.isEmpty()) return@registerGenericHolderProvider emptyList()

nearbyCache.get(dispatcher.uuid) { _ ->
holders.filter { it.canApplyTo(dispatcher) }
.map { SimpleProvidedHolder(it.holder) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ object EffectAddPermanentHolderInRadius : Effect<HolderTemplate>("add_permanent_

init {
registerGenericHolderProvider { dispatcher ->
if (holders.isEmpty()) return@registerGenericHolderProvider emptyList()

nearbyCache.get(dispatcher.uuid) { _ ->
holders.filter { it.canApplyTo(dispatcher) }
.map { SimpleProvidedHolder(it.holder) }
Expand Down

0 comments on commit 5508c89

Please sign in to comment.