File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3030import com .viaversion .viaversion .api .protocol .packet .PacketWrapper ;
3131import com .viaversion .viaversion .api .protocol .remapper .PacketRemapper ;
3232import com .viaversion .viaversion .api .protocol .remapper .ValueTransformer ;
33+ import com .viaversion .viaversion .api .protocol .version .ProtocolVersion ;
3334import com .viaversion .viaversion .api .type .Type ;
3435import com .viaversion .viaversion .api .type .types .Particle ;
3536import com .viaversion .viaversion .api .type .types .version .Types1_14 ;
@@ -114,7 +115,9 @@ public void registerMap() {
114115
115116 // Send a dummy respawn with a different dimension if the world name was different and the same dimension was used
116117 if (clientWorld .getEnvironment () != null && dimension == clientWorld .getEnvironment ().getId ()
117- && (wrapper .user ().isClientSide () || Via .getPlatform ().isProxy () || !nextWorldName .equals (worldNameTracker .getWorldName ()))) {
118+ && (wrapper .user ().isClientSide () || Via .getPlatform ().isProxy ()
119+ || wrapper .user ().getProtocolInfo ().getProtocolVersion () <= ProtocolVersion .v1_12_2 .getVersion () // Hotfix for https://github.com/ViaVersion/ViaBackwards/issues/381
120+ || !nextWorldName .equals (worldNameTracker .getWorldName ()))) {
118121 PacketWrapper packet = wrapper .create (ClientboundPackets1_15 .RESPAWN );
119122 packet .write (Type .INT , dimension == 0 ? -1 : 0 );
120123 packet .write (Type .LONG , 0L );
You can’t perform that action at this time.
0 commit comments