From 93eedc1b2b1a713445c789383d33435b7f0a63f9 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 25 Sep 2023 13:37:03 +0100 Subject: [PATCH] fabric: Update to 1.20.2 (#499) --- .../net/william278/huskhomes/user/FabricUser.java | 6 +++--- gradle.properties | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fabric/src/main/java/net/william278/huskhomes/user/FabricUser.java b/fabric/src/main/java/net/william278/huskhomes/user/FabricUser.java index 864deae2b..5429f2d55 100644 --- a/fabric/src/main/java/net/william278/huskhomes/user/FabricUser.java +++ b/fabric/src/main/java/net/william278/huskhomes/user/FabricUser.java @@ -24,7 +24,7 @@ import net.fabricmc.fabric.api.networking.v1.PacketByteBufs; import net.kyori.adventure.audience.Audience; import net.minecraft.network.PacketByteBuf; -import net.minecraft.network.packet.s2c.play.CustomPayloadS2CPacket; +import net.minecraft.network.packet.s2c.common.CustomPayloadS2CPacket; import net.minecraft.server.MinecraftServer; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Identifier; @@ -151,9 +151,9 @@ public void teleportLocally(@NotNull Location location, boolean async) throws Te @Override public void sendPluginMessage(@NotNull String channel, byte[] message) { final PacketByteBuf buf = PacketByteBufs.create(); + buf.writeIdentifier(parseIdentifier(channel)); buf.writeBytes(message); - final CustomPayloadS2CPacket packet = new CustomPayloadS2CPacket(parseIdentifier(channel), buf); - player.networkHandler.sendPacket(packet); + player.networkHandler.sendPacket(new CustomPayloadS2CPacket(buf)); } @Override diff --git a/gradle.properties b/gradle.properties index 206b9eb66..5cecdf433 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ javaVersion=16 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -plugin_version=4.5 +plugin_version=4.5.1 plugin_archive=huskhomes plugin_description=The powerful and intuitive homes, warps, and teleports plugin/mod @@ -18,10 +18,10 @@ mariadb_driver_version=3.1.4 # Fabric settings fabric_loom_version=1.3-SNAPSHOT -fabric_minecraft_version=1.20.1 -fabric_loader_version=0.14.21 -fabric_yarn_mappings=1.20.1+build.2 -fabric_api_version=0.83.1+1.20.1 +fabric_minecraft_version=1.20.2 +fabric_loader_version=0.14.22 +fabric_yarn_mappings=1.20.2+build.1 +fabric_api_version=0.89.2+1.20.2 fabric_permissions_api_version=0.2-SNAPSHOT -adventure_platform_fabric_version=5.9.0 \ No newline at end of file +adventure_platform_fabric_version=5.10.0 \ No newline at end of file