Fixed null pointer exception crash when clicking around top tabs in creative.

This commit is contained in:
luisc committed 2024-02-20 16:24:06 -06:00
1 parent 69185de3f3
commit 4f69da0594
1 file changed
+2 -13
@@ -10,22 +10,11 @@ public class InventoryTabVanilla extends AbstractTab {
@Override
public void onTabClicked() {
Thread t = new Thread(){
@Override
public void run(){
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
TabRegistry.openInventoryGui();
}
};
t.start();
TabRegistry.openInventoryGui();
}
@Override
public boolean shouldAddToList() {
return true;
}
}
}