Skip to content

Commit

Permalink
Bump version to 0.1.1, drop 1.20.5+ support, add 1.21 support
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco committed Jun 25, 2024
1 parent 9d74171 commit 7f39589
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ subprojects {
apply(plugin = "maven-publish")

group = "wtf.choco"
version = "0.1.0"
version = "0.1.1"

java {
toolchain {
Expand Down
4 changes: 2 additions & 2 deletions networking-fabric/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
minecraft_version=1.20.5
fabric_version=0.97.8+1.20.5
minecraft_version=1.21
fabric_version=0.100.4+1.21
loader_version=0.15.11
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void registerClientboundMessageHandler(@NotNull NamespacedKey channel, @N
return;
}

ResourceLocation channelKey = new ResourceLocation(channel.namespace(), channel.key());
ResourceLocation channelKey = ResourceLocation.fromNamespaceAndPath(channel.namespace(), channel.key());
ClientPlayNetworking.registerGlobalReceiver(payloadType, (payload, context) -> {
MessageByteBuffer buffer = new MessageByteBuffer(protocol, payload.data());

Expand Down Expand Up @@ -111,7 +111,7 @@ public void registerServerboundMessageHandler(@NotNull NamespacedKey channel, @N
return;
}

ResourceLocation channelKey = new ResourceLocation(channel.namespace(), channel.key());
ResourceLocation channelKey = ResourceLocation.fromNamespaceAndPath(channel.namespace(), channel.key());
ServerPlayNetworking.registerGlobalReceiver(payloadType, (payload, context) -> {
MessageByteBuffer buffer = new MessageByteBuffer(protocol, payload.data());

Expand Down Expand Up @@ -314,7 +314,7 @@ protected S onSuccessfulServerboundMessage(@NotNull MinecraftServer server, @Not
private CustomPacketPayload.Type<RawDataPayload> initTypeIfNecessary(NamespacedKey channel) {
CustomPacketPayload.Type<RawDataPayload> type = RawDataPayload.getType();
if (type == null) {
RawDataPayload.setType(type = CustomPacketPayload.createType(channel.toString()));
RawDataPayload.setType(type = new CustomPacketPayload.Type<>(ResourceLocation.parse(channel.toString())));
}
return type;
}
Expand Down

0 comments on commit 7f39589

Please sign in to comment.