ignore tab list sorting errors for now

This commit is contained in:
Bixilon 2023-02-02 14:57:33 +01:00
parent 04886a4aeb
commit bcda72cc66
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -117,7 +117,11 @@ class TabListElement(guiRenderer: GUIRenderer) : Element(guiRenderer), LayoutedE
toRender += entries.toSynchronizedMap().values
lock.lock()
try {
toRender.sort()
} catch (error: Throwable) {
// TODO: this should not happen
}
lock.unlock()
// Minecraft limits it to 80 items. Imho this is removing a feature, but some servers use a custom tab list plugin and then players are duplicated, etc