From 052730fd32d2347ab294a8ff1741fa461997cb08 Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Thu, 5 Dec 2024 08:20:03 +0100 Subject: [PATCH] Implement missing ticking --- .../ingame/serverbound/ServerboundPlayerLoadedPacket.java | 5 +++++ .../inventory/ServerboundPickItemFromBlockPacket.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/ServerboundPlayerLoadedPacket.java b/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/ServerboundPlayerLoadedPacket.java index 49f44411..2b22d44e 100644 --- a/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/ServerboundPlayerLoadedPacket.java +++ b/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/ServerboundPlayerLoadedPacket.java @@ -15,4 +15,9 @@ public class ServerboundPlayerLoadedPacket implements MinecraftPacket { @Override public void serialize(ByteBuf out, MinecraftCodecHelper helper) { } + + @Override + public boolean shouldRunOnGameThread() { + return true; + } } diff --git a/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/inventory/ServerboundPickItemFromBlockPacket.java b/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/inventory/ServerboundPickItemFromBlockPacket.java index 1d89c256..513fa57f 100644 --- a/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/inventory/ServerboundPickItemFromBlockPacket.java +++ b/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/serverbound/inventory/ServerboundPickItemFromBlockPacket.java @@ -25,4 +25,9 @@ public class ServerboundPickItemFromBlockPacket implements MinecraftPacket { helper.writePosition(out, this.pos); out.writeBoolean(this.includeData); } + + @Override + public boolean shouldRunOnGameThread() { + return true; + } }