Skip to content

Commit f790305

Browse files
authored
Update ping value in player list entry instead of sending a new one in 1.8->1.7 (#599)
1 parent 3a7ac07 commit f790305

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

common/src/main/java/com/viaversion/viarewind/protocol/v1_8to1_7_6_10/rewriter/PlayerPacketRewriter1_8.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,9 @@ public void register() {
300300
if (gameProfile == null) {
301301
continue;
302302
}
303-
PacketWrapper packet = PacketWrapper.create(ClientboundPackets1_7_2_5.PLAYER_INFO, wrapper.user());
304-
packet.write(Types.STRING, gameProfile.getDisplayName());
305-
packet.write(Types.BOOLEAN, false);
306-
packet.write(Types.SHORT, (short) gameProfile.ping);
307-
packet.scheduleSend(Protocol1_8To1_7_6_10.class);
308-
309303
gameProfile.ping = ping;
310304

311-
packet = PacketWrapper.create(ClientboundPackets1_7_2_5.PLAYER_INFO, wrapper.user());
305+
PacketWrapper packet = PacketWrapper.create(ClientboundPackets1_7_2_5.PLAYER_INFO, wrapper.user());
312306
packet.write(Types.STRING, gameProfile.getDisplayName());
313307
packet.write(Types.BOOLEAN, true);
314308
packet.write(Types.SHORT, (short) ping);

0 commit comments

Comments
 (0)