From 04e572fa308efd6fd18d45e630872354e120546e Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 1 Mar 2024 12:38:54 +0100 Subject: [PATCH] Hotfix receiving level screen not closing on Velocity Closes #3630 --- .../rewriter/EntityPacketRewriter1_20_3.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_3to1_20_2/rewriter/EntityPacketRewriter1_20_3.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_3to1_20_2/rewriter/EntityPacketRewriter1_20_3.java index 3c5742ecc..f4f538f11 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_3to1_20_2/rewriter/EntityPacketRewriter1_20_3.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_3to1_20_2/rewriter/EntityPacketRewriter1_20_3.java @@ -85,6 +85,9 @@ public final class EntityPacketRewriter1_20_3 extends EntityRewriter sendChunksSentGameEvent(wrapper)); } }); + + // https://github.com/ViaVersion/ViaVersion/issues/3630, should still investigate why sending it with respawn/login doesn't work on Velocity + protocol.registerClientbound(ClientboundPackets1_20_2.WORLD_BORDER_INIT, this::sendChunksSentGameEvent); } private void sendChunksSentGameEvent(final PacketWrapper wrapper) throws Exception {