diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-16 22:16:28 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-16 22:16:28 +0700 |
commit | 416b60ef717f4f7183f54a4a7362e0c540928c8d (patch) | |
tree | 93ea29eac3c0b619704297c1b4640a9faa64e5f5 /src/main/kotlin/cc | |
parent | d6b6c28790d5a9d1fd991f95d5e18a26d3726650 (diff) | |
download | OneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.tar.gz OneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.tar.bz2 OneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.zip |
fast render compat (i hate fast render)
Diffstat (limited to 'src/main/kotlin/cc')
-rw-r--r-- | src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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 |