blob: 3c710c3f82fa174a111db980fbbc6958ffa12bc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 final 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);
}
}
|