Loading items after the player to ensure the hint cache works correctly in some mods (#687)

This commit is contained in:
slprime authored and GitHub committed 2025-08-16 07:38:24 +07:00
1 parent b49d066231
commit ef8706ae38
1 file changed
+1 -1
+1 -1
View File
@@ -293,7 +293,7 @@ public class ItemList {
@Override
@SuppressWarnings("unchecked")
public void execute() {
if (!NEIClientConfig.isEnabled()) return;
if (!NEIClientConfig.isEnabled() || NEIClientUtils.mc().thePlayer == null) return;
ThreadOperationTimer timer = getTimer(NEIClientConfig.getItemLoadingTimeout());
LayoutManager.itemsLoaded = true;