mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-10-06 05:57:56 +02:00
Actually update the dimension change comment
This commit is contained in:
parent
c0f88bbf62
commit
5e5e32769f
@ -64,7 +64,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
|||||||
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
||||||
int dimension = wrapper.get(Type.INT, 0);
|
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())) {
|
if (clientWorld.getEnvironment() != null && dimension == clientWorld.getEnvironment().getId() && !nextWorldName.equals(worldNameTracker.getWorldName())) {
|
||||||
PacketWrapper packet = wrapper.create(ClientboundPackets1_15.RESPAWN.ordinal());
|
PacketWrapper packet = wrapper.create(ClientboundPackets1_15.RESPAWN.ordinal());
|
||||||
packet.write(Type.INT, dimension == 0 ? -1 : 0);
|
packet.write(Type.INT, dimension == 0 ? -1 : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user