Fix error when using viaversion

This commit is contained in:
libraryaddict 2023-12-12 16:16:01 +13:00
parent 996d1af2d6
commit c7b49d531e

View File

@ -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 =