Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge 1.20 support
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyRin committed Jun 28, 2023
1 parent a89e684 commit d32ff56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ public static class Item
Boolean listed;

// ADD_PLAYER & UPDATE_GAMEMODE
Integer gamemode;
int gamemode;

// ADD_PLAYER & UPDATE_LATENCY
Integer ping;
int ping;

// ADD_PLAYER & UPDATE_DISPLAY_NAME
String displayName;
Expand Down
4 changes: 2 additions & 2 deletions proxy/src/main/java/net/md_5/bungee/tab/TabList.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ private static void rewrite(PlayerListItem.Item item)
item.setProperties( new Property[ 0 ] );
}
}
if ( item.getGamemode() != null )
if ( item.getGamemode() != player.getGamemode() )
{
player.setGamemode( item.getGamemode() );
}
if ( item.getPing() != null )
if ( item.getPing() != player.getPing() )
{
player.setPing( item.getPing() );
}
Expand Down

0 comments on commit d32ff56

Please sign in to comment.