mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Apply window resizing to all gui layers (#8207)
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user