Skip to content

Commit

Permalink
Add listOrder support to tablist rewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNugget committed Dec 14, 2024
1 parent 1858dea commit a6da729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public boolean handle(MinecraftSessionHandler handler) {
fixedEntry.setProfile(item.getProfile());
}
fixedEntry.setListed(item.isListed());
fixedEntry.setListOrder(item.getListOrder());
fixedEntry.setChatSession(item.getChatSession());

items.set(i, fixedEntry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ default TabListEntry rewriteEntry(TabListEntry entry) {
builder.gameMode(entry.getGameMode());
entry.getDisplayNameComponent().ifPresent(builder::displayName);
builder.chatSession(entry.getChatSession());
builder.listOrder(entry.getListOrder());

return builder.build();
}
Expand Down

0 comments on commit a6da729

Please sign in to comment.