3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-08 11:10:06 +02:00

Queue join game first, then send config packets

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-10-11 00:06:48 +10:00
Ursprung 0d70cdbe15
Commit d600b0cbe1

Datei anzeigen

@ -119,11 +119,11 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
return; return;
} }
Protocol1_20_2To1_20.sendConfigurationPackets(wrapper.user(), dimensionRegistry, null); // Queue it and send it after the client acks the configuration finish
// Manually send it at the end and hope nothing breaks
configurationBridge.setJoinGamePacket(wrapper); configurationBridge.setJoinGamePacket(wrapper);
wrapper.cancel(); wrapper.cancel();
Protocol1_20_2To1_20.sendConfigurationPackets(wrapper.user(), dimensionRegistry, null);
}); });
handler(worldDataTrackerHandlerByKey()); // Tracks world height and name for chunk data and entity (un)tracking handler(worldDataTrackerHandlerByKey()); // Tracks world height and name for chunk data and entity (un)tracking
} }