Update NMSImpl.java

This commit is contained in:
fullwall 2022-12-30 08:23:57 +08:00 committed by GitHub
parent a669a8a256
commit 1ceb51589f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1102,8 +1102,8 @@ public class NMSImpl implements NMSBridge {
if (Setting.DISABLE_TABLIST.asBoolean() != data.listed()) {
list.set(i,
new ClientboundPlayerInfoUpdatePacket.Entry(data.profileId(), data.profile(),
Setting.DISABLE_TABLIST.asBoolean(), data.latency(), data.gameMode(),
Setting.DISABLE_TABLIST.asBoolean() ? data.displayName() : Component.empty(),
!Setting.DISABLE_TABLIST.asBoolean(), data.latency(), data.gameMode(),
!Setting.DISABLE_TABLIST.asBoolean() ? data.displayName() : Component.empty(),
data.chatSession()));
changed = true;
}