mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-12 00:17:51 +00:00
Fix some CMEs that pop up when opening inventory immediately after logging in. (#135)
This commit is contained in:
1 parent
37a571d878
commit
ae2cc2c600
7 files changed
+78
-35
No files matched your search
@@ -112,7 +112,12 @@ public class API
|
||||
}
|
||||
|
||||
public static void registerNEIGuiHandler(INEIGuiHandler handler) {
|
||||
GuiInfo.guiHandlers.add(handler);
|
||||
try {
|
||||
GuiInfo.writeLock.lock();
|
||||
GuiInfo.guiHandlers.add(handler);
|
||||
} finally {
|
||||
GuiInfo.writeLock.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user