Move world data tracker into first join game handler

This commit is contained in:
Nassim Jahnke 2023-08-18 01:36:37 +10:00
parent 6dd5cb20d9
commit 108e96ec6d

View File

@ -75,6 +75,8 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
wrapper.write(Type.BOOLEAN, reducedDebugInfo); wrapper.write(Type.BOOLEAN, reducedDebugInfo);
wrapper.write(Type.BOOLEAN, showRespawnScreen); wrapper.write(Type.BOOLEAN, showRespawnScreen);
worldDataTrackerHandlerByKey().handle(wrapper);
wrapper.send(Protocol1_20To1_20_2.class); wrapper.send(Protocol1_20To1_20_2.class);
wrapper.cancel(); wrapper.cancel();
@ -84,7 +86,6 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
configurationPacketStorage.sendQueuedPackets(wrapper.user()); configurationPacketStorage.sendQueuedPackets(wrapper.user());
}); });
handler(worldDataTrackerHandlerByKey());
} }
}); });