Fix some CMEs that pop up when opening inventory immediately after logging in. (#135)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2021-06-05 19:47:58 +02:00
1 parent 37a571d878
commit ae2cc2c600
7 files changed
+78 -35

No files matched your search

+6 -1
View File
@@ -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();
}
}
/**