Skip to content

Commit

Permalink
update kstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg committed Aug 3, 2024
1 parent ed891d0 commit aa524f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package ru.astrainteractive.astralibs.configuration

import org.bukkit.configuration.file.FileConfiguration
import ru.astrainteractive.klibs.kstorage.api.Krate
import ru.astrainteractive.klibs.kstorage.api.StateFlowKrate
import ru.astrainteractive.klibs.kstorage.api.MutableKrate
import ru.astrainteractive.klibs.kstorage.api.flow.StateFlowMutableKrate
import ru.astrainteractive.klibs.kstorage.api.impl.DefaultMutableKrate
import ru.astrainteractive.klibs.kstorage.api.impl.DefaultStateFlowMutableKrate

object BukkitMutableStorageValue {
inline fun <reified T> FileConfiguration.anyStateFlowMutableStorageValue(
path: String
): StateFlowKrate.Mutable<T?> {
): StateFlowMutableKrate<T?> {
return DefaultStateFlowMutableKrate(
factory = { null },
saver = { set(path, it) },
Expand All @@ -19,7 +19,7 @@ object BukkitMutableStorageValue {

inline fun <reified T> FileConfiguration.anyMutableStorageValue(
path: String
): Krate.Mutable<T?> {
): MutableKrate<T?> {
return DefaultMutableKrate(
factory = { null },
saver = { set(path, it) },
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kyori = "4.17.0" # https://github.com/KyoriPowered/adventure-platform

# klibs
klibs-gradleplugin = "1.3.4" # https://github.com/makeevrserg/gradle-plugin
klibs-kstorage = "2.4.1" # https://github.com/makeevrserg/klibs.kstorage
klibs-kstorage = "3.0.0" # https://github.com/makeevrserg/klibs.kstorage
klibs-mikro = "1.8.4" # https://github.com/makeevrserg/klibs.mikro
klibs-kdi = "1.4.5" # https://github.com/makeevrserg/klibs.kdi

Expand Down

0 comments on commit aa524f5

Please sign in to comment.