Skip to content

Commit 13d4760

Browse files
committed
fix cheaters codex
1 parent 4dcd302 commit 13d4760

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/kotlin/dev/sterner/api/util/VoidBoundPlayerUtils.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ object VoidBoundPlayerUtils {
7171
return false
7272
}
7373

74-
fun addThought(player: Player, text: Component, duration: Int = 20 * 5) {
74+
fun addThought(player: Player, text: Component, duration: Int = 20 * 5, delay: Int = 20 * 5) {
7575
VoidBoundComponentRegistry.VOID_BOUND_REVELATION_COMPONENT.maybeGet(player).ifPresent {
76-
it.addThought(text, duration, 20 * 5)
76+
it.addThought(text, duration, delay)
7777
}
7878
}
7979

src/main/kotlin/dev/sterner/common/item/CheatersCodexItem.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CheatersCodexItem(properties: Properties) : Item(properties) {
2929

3030
VoidRevelationHandler.seeTheRevelation(VoidRevelationHandler.RevelationType.VOID_READER)
3131

32-
VoidBoundPlayerUtils.addThought(player, Component.translatable("You just know everything don't you >:("))
32+
VoidBoundPlayerUtils.addThought(player, Component.translatable("You just know everything don't you >:("), 20 * 5, 1)
3333

3434
return super.use(level, player, usedHand)
3535
}

0 commit comments

Comments
 (0)