Skip to content

Commit ecd3cc3

Browse files
committed
1.21.5 moment
1 parent bab2099 commit ecd3cc3

File tree

7 files changed

+28
-26
lines changed

7 files changed

+28
-26
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
22
id "architectury-plugin" version "3.4-SNAPSHOT"
3-
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
3+
id "dev.architectury.loom" version "1.9-SNAPSHOT" apply false
44
id "org.ajoberstar.grgit" version "5.0.0" apply false
55
id "com.matthewprenger.cursegradle" version "1.4.0" apply false
66
id "com.modrinth.minotaur" version "2.+" apply false
7-
id "org.jetbrains.kotlin.jvm" version "1.9.23" apply false
7+
id "org.jetbrains.kotlin.jvm" version "2.1.20" apply false
88
}
99

1010
architectury {

common/src/main/kotlin/me/cael/capes/handler/PlayerHandler.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import java.net.HttpURLConnection
2020
import java.net.URL
2121
import java.util.*
2222
import java.util.concurrent.Executors
23+
import java.util.function.Supplier
2324

2425
class PlayerHandler(var profile: GameProfile) {
2526
val uuid: UUID = profile.id
@@ -145,7 +146,7 @@ class PlayerHandler(var profile: GameProfile) {
145146
val animatedCapeFrames = parseAnimatedCape(cape)
146147
animatedCapeFrames.forEach { (frame, texture) ->
147148
MinecraftClient.getInstance().textureManager.registerTexture(
148-
identifier("$uuid/$frame"), NativeImageBackedTexture(texture)
149+
identifier("$uuid/$frame"), NativeImageBackedTexture({"$uuid/$frame"}, texture)
149150
)
150151
}
151152
this.maxFrames = animatedCapeFrames.size
@@ -154,7 +155,7 @@ class PlayerHandler(var profile: GameProfile) {
154155
} else {
155156
this.hasElytraTexture = cape.width.floorDiv(cape.height) == 2
156157
MinecraftClient.getInstance().textureManager.registerTexture(
157-
identifier(uuid.toString()), NativeImageBackedTexture(parseCape(cape))
158+
identifier(uuid.toString()), NativeImageBackedTexture({uuid.toString()}, parseCape(cape))
158159
)
159160
this.hasCape = true
160161
}

common/src/main/kotlin/me/cael/capes/menu/SelectorMenu.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class SelectorMenu(parent: Screen, gameOptions: GameOptions) : MainMenu(parent,
8585
val quaternion = RotationAxis.POSITIVE_Z.rotationDegrees(180.0f)
8686
matrixStack2.multiply(quaternion)
8787

88-
DiffuseLighting.method_34742()
88+
DiffuseLighting.enableGuiShaderLighting()
8989
val entityRenderDispatcher = MinecraftClient.getInstance().entityRenderDispatcher
9090
entityRenderDispatcher.setRenderShadows(false)
9191
val immediate = MinecraftClient.getInstance().bufferBuilders.entityVertexConsumers

common/src/main/kotlin/me/cael/capes/render/DisplayPlayerEntityRenderer.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ class DisplayPlayerEntityRenderer(val ctx: EntityRendererFactory.Context, slim:
8080

8181
fun setAngles(f: Float, g: Float) {
8282
model.body.yaw = 0.0f
83-
model.rightArm.pivotZ = 0.0f
84-
model.rightArm.pivotX = -5.0f
85-
model.leftArm.pivotZ = 0.0f
86-
model.leftArm.pivotX = 5.0f
83+
model.rightArm.originZ = 0.0f
84+
model.rightArm.originX = -5.0f
85+
model.leftArm.originZ = 0.0f
86+
model.leftArm.originX = 5.0f
8787

8888
model.rightArm.pitch = MathHelper.cos(f * 0.6662f + 3.1415927f) * 2.0f * g * 0.5f
8989
model.leftArm.pitch = MathHelper.cos(f * 0.6662f) * 2.0f * g * 0.5f
@@ -100,14 +100,14 @@ class DisplayPlayerEntityRenderer(val ctx: EntityRendererFactory.Context, slim:
100100
model.leftArm.yaw = 0.0f
101101

102102
model.body.pitch = 0.0f
103-
model.rightLeg.pivotZ = 0.1f
104-
model.leftLeg.pivotZ = 0.1f
105-
model.rightLeg.pivotY = 12.0f
106-
model.leftLeg.pivotY = 12.0f
107-
model.head.pivotY = 0.0f
108-
model.body.pivotY = 0.0f
109-
model.leftArm.pivotY = 2.0f
110-
model.rightArm.pivotY = 2.0f
103+
model.rightLeg.originZ = 0.1f
104+
model.leftLeg.originZ = 0.1f
105+
model.rightLeg.originY = 12.0f
106+
model.leftLeg.originY = 12.0f
107+
model.head.originY = 0.0f
108+
model.body.originY = 0.0f
109+
model.leftArm.originY = 2.0f
110+
model.rightArm.originY = 2.0f
111111
}
112112

113113
private fun setModelPose() {

fabric/src/main/kotlin/me/cael/capes/fabric/FabricCapes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ object FabricCapes : ClientModInitializer {
5959
.append("URL: ${handler.capeType?.getURL(profile)}")
6060

6161
val text = Text.literal("Click here to copy debug info for player ${profile.name}.")
62-
val clickEvent = ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, infoText.string)
63-
val hoverEvent = HoverEvent(HoverEvent.Action.SHOW_TEXT, infoText)
62+
val clickEvent = ClickEvent.CopyToClipboard(infoText.string)
63+
val hoverEvent = HoverEvent.ShowText(infoText)
6464
val style = Style.EMPTY
6565
.withClickEvent(clickEvent)
6666
.withHoverEvent(hoverEvent)

gradle.properties

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
org.gradle.jvmargs=-Xmx8G
2+
loom.ignoreDependencyLoomVersionValidation=true
23

3-
minecraft_version=1.21.4
4-
yarn_mappings=1.21.4+build.1
4+
minecraft_version=1.21.5
5+
yarn_mappings=1.21.5+build.1
56
neoforge_yarn_mappings=1.21+build.4
67
enabled_platforms=fabric
78

89
archives_base_name=capes
9-
mod_version=1.5.5+1.21.4
10+
mod_version=1.5.5+1.21.5
1011
maven_group=me.capes
1112

12-
fabric_loader_version=0.16.9
13-
fabric_api_version=0.110.5+1.21.4
13+
fabric_loader_version=0.16.10
14+
fabric_api_version=0.119.5+1.21.5
1415

1516
forge_version=21.2.0-beta
1617

1718
# Other APIs
18-
fabric_kotlin_version=1.12.3+kotlin.2.0.21
19+
fabric_kotlin_version=1.13.2+kotlin.2.1.20
1920
forge_kotlin_version=5.+
2021
modmenu_version=12.+
2122

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)