mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Fix error when using viaversion
This commit is contained in:
parent
996d1af2d6
commit
c7b49d531e
@ -985,6 +985,9 @@ public class ReflectionManager {
|
||||
if (DisguiseUtilities.isFancyHiddenTabs()) {
|
||||
return nmsReflection.getTabListPacket(player.getPlayerListName(), ReflectionManager.getGameProfile(player), visible,
|
||||
EnumWrappers.PlayerInfoAction.UPDATE_LISTED);
|
||||
} else if (NmsVersion.v1_19_R2.isSupported()) {
|
||||
return nmsReflection.getTabListPacket(player.getPlayerListName(), ReflectionManager.getGameProfile(player), visible,
|
||||
visible ? EnumWrappers.PlayerInfoAction.ADD_PLAYER : EnumWrappers.PlayerInfoAction.REMOVE_PLAYER);
|
||||
}
|
||||
|
||||
PlayerInfoData playerInfo =
|
||||
|
Loading…
Reference in New Issue
Block a user