Skip to content

Commit

Permalink
build: update fabric mapping and fabric api
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Dec 25, 2024
1 parent 2fa7570 commit 5c3d977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
val version = "0.0.1"
val group = "one.oktw"

val fabricVersion = "0.111.0+1.21.4"
val fabricVersion = "0.113.0+1.21.4"
val galaxyLibVersion = "bcf8f61"

repositories {
Expand Down Expand Up @@ -43,7 +43,7 @@ loom {
dependencies {
// Core
minecraft(group = "com.mojang", name = "minecraft", version = "1.21.4")
mappings(group = "net.fabricmc", name = "yarn", version = "1.21.4+build.1", classifier = "v2")
mappings(group = "net.fabricmc", name = "yarn", version = "1.21.4+build.2", classifier = "v2")
modImplementation(group = "net.fabricmc", name = "fabric-loader", version = "0.16.9")

// fabric api
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/one/oktw/galaxy/block/CustomBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ open class CustomBlock(final override val identifier: Identifier, val baseBlock:
protected val blockEntityType: BlockEntityType<CustomBlockEntity> = Registry.register(
Registries.BLOCK_ENTITY_TYPE,
identifier,
FabricBlockEntityTypeBuilder.create({ pos, _ -> createBlockEntity(pos) }, BARRIER).build(null)
FabricBlockEntityTypeBuilder.create({ pos, _ -> createBlockEntity(pos) }, BARRIER).build()
)

companion object {
Expand Down

0 comments on commit 5c3d977

Please sign in to comment.