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

+7 -4
View File
@@ -317,10 +317,13 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
if (gui.guiLeft - 4 < 76)
visiblity.showWidgets = false;
for (INEIGuiHandler handler : GuiInfo.guiHandlers)
handler.modifyVisiblity(gui, visiblity);
try {
GuiInfo.readLock.lock();
GuiInfo.guiHandlers.forEach(handler -> handler.modifyVisiblity(gui, visiblity));
} finally {
GuiInfo.readLock.unlock();
}
visiblity.translateDependancies();
getLayoutStyle().layout(gui, visiblity);