mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-28 15:17:43 +02:00
Need to send two packets
This commit is contained in:
parent
d49781d090
commit
1c4420398c
@ -1212,9 +1212,7 @@ public class NMSImpl implements NMSBridge {
|
||||
ServerPlayer entity = ((CraftPlayer) listPlayer).getHandle();
|
||||
|
||||
ClientboundPlayerInfoUpdatePacket packet = new ClientboundPlayerInfoUpdatePacket(
|
||||
EnumSet.of(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER,
|
||||
ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LISTED),
|
||||
Arrays.asList(entity));
|
||||
EnumSet.of(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER), Arrays.asList(entity));
|
||||
|
||||
boolean list = entity instanceof NPCHolder
|
||||
? !((NPCHolder) entity).getNPC().data().get("removefromtablist", Setting.DISABLE_TABLIST.asBoolean())
|
||||
@ -1225,7 +1223,7 @@ public class NMSImpl implements NMSBridge {
|
||||
entity.getChatSession() == null ? null : entity.getChatSession().asData());
|
||||
|
||||
try {
|
||||
PLAYERINFO_ENTRIES.invoke(packet, Lists.newArrayList(entry));
|
||||
PLAYERINFO_ENTRIES.invoke(packet, Lists.newArrayList(entry, entry));
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user