From e078c3cb5e5fc4c9033c3c09df7882c53c0b8f7e Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Mon, 18 Dec 2023 17:11:17 +0100 Subject: [PATCH] fix a weird bug --- plugin/build.gradle | 2 +- .../main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/build.gradle b/plugin/build.gradle index 91a9f81..c87cb3c 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -8,7 +8,7 @@ runServer { javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(17) } - minecraftVersion "1.20.4" + minecraftVersion "1.20.2" } processResources { diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java b/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java index 7038781..f06994c 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java @@ -96,7 +96,7 @@ public class V1_8PacketFactory implements PacketFactory { CompletableFuture future = new CompletableFuture<>(); skinned(player, properties, new UserProfile(entity.getUuid(), Integer.toString(entity.getEntityId()))).thenAccept(profile -> { sendPacket(player, new WrapperPlayServerPlayerInfo( - WrapperPlayServerPlayerInfo.Action.ADD_PLAYER, new WrapperPlayServerPlayerInfo.PlayerData(Component.text(""), + WrapperPlayServerPlayerInfo.Action.ADD_PLAYER, new WrapperPlayServerPlayerInfo.PlayerData(Component.text(" "), profile, GameMode.CREATIVE, 1))); future.complete(null); });