Skip to content

Commit

Permalink
Quick update, nothing much to say
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWitch7 committed Sep 2, 2024
1 parent 39c51d6 commit db306c5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Updated to Trickster 2.0.0-alpha.26
- Updated to libstellar 1.1.7
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ repositories {
}
}

maven {
url 'https://maven.wispforest.io'
}

maven {
url "https://maven.enjarai.dev/releases"
}
maven {
url "https://maven.enjarai.dev/mirrors"
}

maven {
url 'https://maven.wispforest.io'
}

maven {
name = "Ladysnake Mods"
url = 'https://maven.ladysnake.org/releases'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true

# Mod Properties
mod_version=1.0.2
mod_version=1.0.3
maven_group=stellarwitch7
archives_base_name=ram

Expand All @@ -23,7 +23,7 @@ deps.kotlin=1.11.0+kotlin.2.0.0

# Dependencies
deps.fabric-api=0.100.1+1.21
deps.libstellar=1.0.0
deps.libstellar=1.1.7
deps.owo-lib=0.12.10+1.21
deps.lavender=0.1.11+1.21
deps.cardinal-components-api=6.1.1
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/stellarwitch7/ram/cca/RAMComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class RAMComponent : Component {
constructor(blockEntity: BlockEntity)

override fun readFromNbt(tag: NbtCompound, registryLookup: RegistryWrapper.WrapperLookup) {
val result = RAM.codec.codec().parse(NbtOps.INSTANCE, tag.get("ram"))
val result = RAM.codec.parse(NbtOps.INSTANCE, tag.get("ram"))

if (result.hasResultOrPartial())
ram = result.resultOrPartial().orElseThrow()
}

override fun writeToNbt(tag: NbtCompound, registryLookup: RegistryWrapper.WrapperLookup) {
tag.put("ram", RAM.codec.codec().encodeStart(NbtOps.INSTANCE, ram).result().orElseThrow())
tag.put("ram", RAM.codec.encodeStart(NbtOps.INSTANCE, ram).result().orElseThrow())
}
}
3 changes: 1 addition & 2 deletions src/main/kotlin/stellarwitch7/ram/spell/mind/RAM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ interface RAM : CodecTypeProvider<RAM> {

companion object : CodecRegistrar<RAM> {
override val modID: String = RandomAccessMind.MOD_ID
override val name: String = "ram"
override val registry: Registry<CodecType<RAM>> = makeReg()
override val registry: Registry<CodecType<RAM>> = makeReg("ram")

val default = register("default", DefaultRAM.codec)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"java": ">=21",
"fabric-api": "*",
"fabric-language-kotlin": "*",
"libstellar": "1.0.0",
"libstellar": "1.1.7",
"trickster": "2.0.0-alpha.26"
},
"suggests": {
Expand Down

0 comments on commit db306c5

Please sign in to comment.