aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt6
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