Skip to content

Commit 85c3b8c

Browse files
committed
chore: update fabric mod to 1.21.11
1 parent 2b00cd8 commit 85c3b8c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

fabric/src/main/java/com/github/juliarn/npclib/fabric/FabricWorldAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static final class KeyBasedLevelAccessor implements PlatformWorldAccesso
4242

4343
@Override
4444
public @NotNull String extractWorldIdentifier(@NotNull ServerLevel world) {
45-
return world.dimension().location().toString();
45+
return world.dimension().identifier().toString();
4646
}
4747

4848
@Override

fabric/src/main/java/com/github/juliarn/npclib/fabric/protocol/FabricProtocolAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
import net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket;
7575
import net.minecraft.network.syncher.EntityDataSerializers;
7676
import net.minecraft.network.syncher.SynchedEntityData;
77-
import net.minecraft.resources.ResourceLocation;
77+
import net.minecraft.resources.Identifier;
7878
import net.minecraft.server.level.ServerLevel;
7979
import net.minecraft.server.level.ServerPlayer;
8080
import net.minecraft.util.Mth;
@@ -349,7 +349,7 @@ private FabricProtocolAdapter() {
349349
) {
350350
return (player, npc) -> {
351351
// construct the custom payload to send
352-
var channelLocation = ResourceLocation.parse(channelId);
352+
var channelLocation = Identifier.parse(channelId);
353353
var payloadType = new CustomPacketPayload.Type<ByteArrayCustomPayload>(channelLocation);
354354
var customPayload = new ByteArrayCustomPayload(payloadType, payload);
355355

fabric/src/main/java/com/github/juliarn/npclib/fabric/util/FabricUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static double distance(@NotNull Npc<?, ?, ?, ?> npc, @NotNull Vec3 other)
6868
@NotNull Vec3 pos,
6969
@NotNull Vec2 rot
7070
) {
71-
var worldId = level.dimension().location().toString();
71+
var worldId = level.dimension().identifier().toString();
7272
return Position.position(pos.x(), pos.y(), pos.z(), rot.x, rot.y, worldId);
7373
}
7474
}

fabric/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"accessWidener": "npc_lib.accesswidener",
2020
"depends": {
2121
"fabricloader": ">=0.17.0",
22-
"minecraft": "~1.21.9",
22+
"minecraft": "~1.21.11",
2323
"java": ">=21",
2424
"fabric-networking-api-v1": "*"
2525
}

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ paper = "1.21.10-R0.1-SNAPSHOT"
1818
minestom = "2025.10.31-1.21.10"
1919

2020
# fabric
21-
minecraft = "1.21.9"
22-
fabricLoom = "1.13.4"
23-
fabricLoader = "0.18.0"
24-
fabricApi = "0.133.14+1.21.9"
21+
minecraft = "1.21.11"
22+
fabricLoom = "1.14.5"
23+
fabricLoader = "0.18.2"
24+
fabricApi = "0.139.4+1.21.11"
2525

2626
# platform extensions
2727
packetEvents = "2.10.1"
@@ -57,6 +57,6 @@ checkstyleTools = { group = "com.puppycrawl.tools", name = "checkstyle", version
5757
[plugins]
5858

5959
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
60-
fabricLoom = { id = "fabric-loom", version.ref = "fabricLoom" }
6160
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
61+
fabricLoom = { id = "net.fabricmc.fabric-loom-remap", version.ref = "fabricLoom" }
6262
nexusPublish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexusPublish" }

0 commit comments

Comments
 (0)