Fix generic rendering at extreme distances

This commit is contained in:
James Seibel
2024-07-10 07:37:18 -05:00
parent 97dacf2429
commit 9dd76db3fc
2 changed files with 3 additions and 1 deletions
@@ -443,7 +443,9 @@ public class ClassicConfigGUI
String key = translationPrefix + (newInfo.category.isEmpty() ? "" : newInfo.category + ".") + newInfo.getName() + ".@tooltip";
if (((EntryInfo) newInfo.guiValue).error != null && text.equals(name))
{
DhRenderTooltip(matrices, font, ((EntryInfo) newInfo.guiValue).error.getValue(), mouseX, mouseY);
}
else if (I18n.exists(key) && (text != null && text.equals(name)))
{
List<Component> list = new ArrayList<>();