From 5e5e32769fcfac4c79c8b48f94caec2fadf7a5a1 Mon Sep 17 00:00:00 2001 From: Myles Date: Sun, 6 Dec 2020 09:39:38 +0000 Subject: [PATCH] Actually update the dimension change comment --- .../protocol1_15_2to1_16/packets/EntityPackets1_16.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java index e91de61b..e6e73103 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java @@ -64,7 +64,7 @@ public class EntityPackets1_16 extends EntityRewriter { ClientWorld clientWorld = wrapper.user().get(ClientWorld.class); int dimension = wrapper.get(Type.INT, 0); - // Send a dummy respawn with a different world name with same dimension as the previous + // Send a dummy respawn with a different dimension if the world name was different and the same dimension was used if (clientWorld.getEnvironment() != null && dimension == clientWorld.getEnvironment().getId() && !nextWorldName.equals(worldNameTracker.getWorldName())) { PacketWrapper packet = wrapper.create(ClientboundPackets1_15.RESPAWN.ordinal()); packet.write(Type.INT, dimension == 0 ? -1 : 0);