From 416b60ef717f4f7183f54a4a7362e0c540928c8d Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Thu, 16 Jun 2022 22:16:28 +0700 Subject: fast render compat (i hate fast render) --- src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/cc/polyfrost/oneconfig') diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt index 8596a8a..c70f686 100644 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt @@ -4,8 +4,8 @@ import cc.polyfrost.oneconfig.utils.gui.GuiUtils import net.minecraft.client.gui.GuiScreen /** - * Displays the provided screen after a tick, preventing mouse sync issues. + * Displays a screen after the specified amount of ticks. * - * @see GuiUtils.displayScreen + * @param ticks the amount of ticks to wait for before displaying the screen. */ -fun GuiScreen.openScreen() = GuiUtils.displayScreen(this) \ No newline at end of file +fun GuiScreen.openScreen(ticks: Int = 1) = GuiUtils.displayScreen(this, ticks) \ No newline at end of file -- cgit