blob: 53f8d544dd8f7d0bd8fd64f730661e6ae5d112e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package cc.polyfrost.oneconfig.utils;
import cc.polyfrost.oneconfig.libs.universal.UScreen;
import net.minecraft.client.gui.GuiScreen;
/**
* A class containing utility methods for working with GuiScreens.
*/
public class GuiUtils {
/**
* Displays a screen after a tick, preventing mouse sync issues.
* @param screen the screen to display.
*/
public static void displayScreen(GuiScreen screen) {
new TickDelay(() -> UScreen.displayScreen(screen), 1);
}
}
|