aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/polyfrost/oneconfig
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-16 22:16:28 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-16 22:16:28 +0700
commit416b60ef717f4f7183f54a4a7362e0c540928c8d (patch)
tree93ea29eac3c0b619704297c1b4640a9faa64e5f5 /src/main/kotlin/cc/polyfrost/oneconfig
parentd6b6c28790d5a9d1fd991f95d5e18a26d3726650 (diff)
downloadOneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.tar.gz
OneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.tar.bz2
OneConfig-416b60ef717f4f7183f54a4a7362e0c540928c8d.zip
fast render compat (i hate fast render)
Diffstat (limited to 'src/main/kotlin/cc/polyfrost/oneconfig')
-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