-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move StaminaTask to StaminaModule to refresh configs on reload
- Loading branch information
Showing
10 changed files
with
59 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
group=com.mineinabyss | ||
version=0.23 | ||
idofrontVersion=0.24.16 | ||
idofrontVersion=0.24.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[versions] | ||
geary = "0.30.10-dev.1" | ||
geary = "0.30.11" | ||
|
||
[libraries] | ||
geary-papermc = { module = "com.mineinabyss:geary-papermc", version.ref = "geary" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/kotlin/com/mineinabyss/staminaclimb/modules/StaminaPaperModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
package com.mineinabyss.staminaclimb.modules | ||
|
||
import com.mineinabyss.idofront.config.IdofrontConfig | ||
import com.mineinabyss.idofront.config.config | ||
import com.mineinabyss.staminaclimb.StaminaClimbPlugin | ||
import com.mineinabyss.staminaclimb.config.StaminaConfig | ||
import com.mineinabyss.staminaclimb.nms.Tags | ||
import it.unimi.dsi.fastutil.ints.IntArrayList | ||
import com.mineinabyss.staminaclimb.stamina.StaminaTask | ||
import net.minecraft.core.Registry | ||
import net.minecraft.resources.ResourceKey | ||
import net.minecraft.resources.ResourceLocation | ||
import net.minecraft.tags.TagNetworkSerialization.NetworkPayload | ||
|
||
class StaminaPaperModule( | ||
override val plugin: StaminaClimbPlugin | ||
) : StaminaClimbModule { | ||
override val config by config("config", plugin.dataPath, StaminaConfig()) | ||
override val staminaTask: StaminaTask = StaminaTask(config) | ||
override val disabledClimbingTags: MutableMap<ResourceKey<out Registry<*>?>, NetworkPayload> = mutableMapOf() | ||
override val initialTags: MutableMap<ResourceKey<out Registry<*>?>, NetworkPayload> = mutableMapOf() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters