Queue join game first, then send config packets

This commit is contained in:
Nassim Jahnke 2023-10-11 00:06:48 +10:00
parent 0d70cdbe15
commit d600b0cbe1

View File

@ -119,11 +119,11 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
return;
}
Protocol1_20_2To1_20.sendConfigurationPackets(wrapper.user(), dimensionRegistry, null);
// Manually send it at the end and hope nothing breaks
// Queue it and send it after the client acks the configuration finish
configurationBridge.setJoinGamePacket(wrapper);
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
}