Apply window resizing to all gui layers (#8207)

This commit is contained in:
MelanX authored and GitHub committed 2021-11-21 13:28:56 +01:00
1 parent c24d05173f
commit 55db597baa
2 files changed
+10 -1

No files matched your search

@@ -172,6 +172,10 @@ public class ForgeHooksClient
*/
private static final Stack<Screen> guiLayers = new Stack<>();
public static void resizeGuiLayers(Minecraft minecraft, int width, int height) {
guiLayers.forEach(screen -> screen.resize(minecraft, width, height));
}
public static void clearGuiLayers(Minecraft minecraft)
{
while(guiLayers.size() > 0)