Skip to content

Commit 7c3c453

Browse files
committed
Update to 1.21.11
1 parent 80362ed commit 7c3c453

23 files changed

+72
-57
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Package
2222
path: build/libs/*.jar
2323
- name: Update description
24-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
24+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
2525
run: ./gradlew modrinthSyncBody
2626
env:
2727
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Updated to 1.21.11

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "me.m56738"
12-
version = "1.21.10-v2-SNAPSHOT"
12+
version = "1.21.11-v1-SNAPSHOT"
1313

1414
dependencies {
1515
minecraft(libs.minecraft)

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[versions]
22
curseforgegradle = "1.1.28"
3-
minecraft = "1.21.10"
3+
minecraft = "1.21.11"
44
minotaur = "2.8.10"
5-
fabric-loader = "0.17.3"
6-
fabric-api = "0.136.0+1.21.10"
7-
fabric-loom = "1.12-SNAPSHOT"
5+
fabric-loader = "0.18.1"
6+
fabric-api = "0.139.4+1.21.11"
7+
fabric-loom = "1.14-SNAPSHOT"
88

99
[libraries]
1010
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }

gradle/wrapper/gradle-wrapper.jar

176 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/me/m56738/smoothcoasters/AnimatedPose.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public boolean isActive() {
2828
return isNotIdentity(previous) || isNotIdentity(lerp) || isNotIdentity(target);
2929
}
3030

31+
public void set(Rotations angle) {
32+
set(angle, 3);
33+
}
34+
3135
public void set(Rotations angle, int ticks) {
3236
targetEuler = angle;
3337
target.rotationZYX(

src/main/java/me/m56738/smoothcoasters/ArmorStandMixinInterface.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
import net.minecraft.client.renderer.entity.state.ArmorStandRenderState;
44

55
public interface ArmorStandMixinInterface {
6-
void smoothcoasters$setTicks(int ticks);
7-
86
void smoothcoasters$animate(ArmorStandRenderState renderState, float time);
97
}

src/main/java/me/m56738/smoothcoasters/SmoothCoasters.java

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package me.m56738.smoothcoasters;
22

3+
import com.mojang.blaze3d.platform.InputConstants;
34
import me.m56738.smoothcoasters.implementation.Implementation;
45
import me.m56738.smoothcoasters.network.EntityPropertiesPayload;
56
import me.m56738.smoothcoasters.network.EntityRotationPayload;
@@ -18,27 +19,29 @@
1819
import net.minecraft.client.Minecraft;
1920
import net.minecraft.client.gui.components.debug.DebugScreenEntries;
2021
import net.minecraft.network.chat.Component;
21-
import net.minecraft.resources.ResourceLocation;
22+
import net.minecraft.resources.Identifier;
2223
import org.joml.Quaternionf;
2324
import org.joml.Quaternionfc;
25+
import org.jspecify.annotations.Nullable;
2426
import org.lwjgl.glfw.GLFW;
25-
import com.mojang.blaze3d.platform.InputConstants;
27+
2628
import java.util.NoSuchElementException;
29+
import java.util.Objects;
2730

2831
public class SmoothCoasters implements ClientModInitializer {
29-
private static final ResourceLocation HANDSHAKE = ResourceLocation.fromNamespaceAndPath("smoothcoasters", "hs");
30-
private static final KeyMapping.Category CAMERA = KeyMapping.Category.register(ResourceLocation.fromNamespaceAndPath("smoothcoasters", "camera"));
32+
private static final Identifier HANDSHAKE = Identifier.fromNamespaceAndPath("smoothcoasters", "hs");
33+
private static final KeyMapping.Category CAMERA = KeyMapping.Category.register(Identifier.fromNamespaceAndPath("smoothcoasters", "camera"));
3134
private static final Quaternionf IDENTITY = new Quaternionf();
32-
private static SmoothCoasters instance;
33-
private Implementation currentImplementation;
34-
private String version;
35-
private KeyMapping toggleBinding;
35+
private static @Nullable SmoothCoasters instance;
36+
private @Nullable Implementation currentImplementation;
37+
private @Nullable String version;
38+
private @Nullable KeyMapping toggleBinding;
3639

3740
public static SmoothCoasters getInstance() {
38-
return instance;
41+
return Objects.requireNonNull(instance);
3942
}
4043

41-
public String getVersion() {
44+
public @Nullable String getVersion() {
4245
return version;
4346
}
4447

@@ -88,27 +91,27 @@ public void onInitializeClient() {
8891
}
8992
});
9093

91-
DebugScreenEntries.register(ResourceLocation.fromNamespaceAndPath("smoothcoasters", "version"), new SmoothCoastersDebugHudEntry());
94+
DebugScreenEntries.register(Identifier.fromNamespaceAndPath("smoothcoasters", "version"), new SmoothCoastersDebugHudEntry());
9295
}
9396

9497
private void handleHandshake(HandshakePayload payload, ClientPlayNetworking.Context context) {
9598
context.client().execute(() -> performHandshake(payload.versions()));
9699
}
97100

98-
private void setCurrentImplementation(Implementation implementation) {
101+
private void setCurrentImplementation(@Nullable Implementation implementation) {
99102
if (currentImplementation != null) {
100103
currentImplementation.unregister();
101104
}
102105

103106
currentImplementation = implementation;
104107

105-
if (currentImplementation != null) {
108+
if (currentImplementation != null && version != null) {
106109
ClientPlayNetworking.send(new HandshakeResponsePayload(currentImplementation.getVersion(), version));
107110
currentImplementation.register();
108111
}
109112
}
110113

111-
private Implementation findImplementation(byte[] offeredVersions) {
114+
private @Nullable Implementation findImplementation(byte[] offeredVersions) {
112115
for (Implementation implementation : Implementation.IMPLEMENTATIONS) {
113116
byte version = implementation.getVersion();
114117
for (byte offeredVersion : offeredVersions) {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@NullMarked
2+
package me.m56738.smoothcoasters.implementation;
3+
4+
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)