Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Fix mobzy spawn conditions to select for source
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jan 28, 2024
1 parent 60ec9b0 commit 695493f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BlockComposition(

@AutoScan
class BlockCompositionCondition : CheckingListener() {
private val Pointers.blockComposition by get<BlockComposition>().on(target)
private val Pointers.blockComposition by get<BlockComposition>().on(source)
val Pointers.spawnInfo by get<SpawnInfo>().on(event)

override fun Pointers.check(): Boolean =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class LocalGroupConditions(

@AutoScan
class CapFull : CheckingListener() {
val Pointers.conf by get<LocalGroupConditions>().on(target)
val Pointers.spawnType by get<SpawnType>().on(target)
val Pointers.conf by get<LocalGroupConditions>().on(source)
val Pointers.spawnType by get<SpawnType>().on(source)

val Pointers.spawnInfo by get<SpawnInfo>().on(event)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class SpawnDelay(

@AutoScan
class SpawnDelayCondition : CheckingListener() {

private val Pointers.delay by get<SpawnDelay>().on(target)
private val Pointers.delay by get<SpawnDelay>().on(source)

override fun Pointers.check(): Boolean {
val iterationMod = (delay.attemptEvery / mobzySpawning.config.spawnTaskDelay)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SpawnGap(

@AutoScan
class SpawnGapCondition : CheckingListener() {
private val Pointers.spawnGap by get<SpawnGap>().on(target)
private val Pointers.spawnGap by get<SpawnGap>().on(source)

private val Pointers.spawnInfo by get<SpawnInfo>().on(event)

Expand Down

0 comments on commit 695493f

Please sign in to comment.