mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 10:47:30 +00:00
Fixed null pointer exception crash when clicking around top tabs in creative.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user