diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-16 18:54:26 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-16 18:54:26 +0200 |
commit | 4db4afb9156edfd7d5485f80e18739d205e23d27 (patch) | |
tree | 41f5225f9b542c3374a1bc897710243aa3278326 /src/main/kotlin/cc/polyfrost/oneconfig/utils | |
parent | 7cf9731db5f34c8a413746161957e0e094e2374d (diff) | |
parent | 416b60ef717f4f7183f54a4a7362e0c540928c8d (diff) | |
download | OneConfig-4db4afb9156edfd7d5485f80e18739d205e23d27.tar.gz OneConfig-4db4afb9156edfd7d5485f80e18739d205e23d27.tar.bz2 OneConfig-4db4afb9156edfd7d5485f80e18739d205e23d27.zip |
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to 'src/main/kotlin/cc/polyfrost/oneconfig/utils')
-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 |