Skip to content

Commit

Permalink
fabric: Update to 1.20.2 (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 authored Sep 25, 2023
1 parent a871d5c commit 93eedc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
adventure_platform_fabric_version=5.10.0

0 comments on commit 93eedc1

Please sign in to comment.