Commit 00225198 authored by Linus K.'s avatar Linus K.
Browse files

Fix blinking text

parent 263f632f
Pipeline #127 passed with stage
in 38 seconds
......@@ -124,7 +124,7 @@ data class TeleportingPlayer(val player: Player, val startLocation: Location,
val teleportTicks = tp.player.teleportDurationTicks
if ((tp.ticksPassed == tickDelta || lastDurationInSecs != currentDurationInSecs) && tp.ticksPassed < teleportTicks) {
val remainSecs = teleportTicks / 20 - currentDurationInSecs
tp.player.sendTitle("", "§6Teleporting in §e$remainSecs second${if (remainSecs != 1L) "s" else " "}", 0, 20, 0)
tp.player.sendTitle("", "§6Teleporting in §e$remainSecs second${if (remainSecs != 1L) "s" else " "}", 0, 30, 0)
}
if(teleportTicks > 0 && !tp.player.hasPotionEffect(PotionEffectType.INVISIBILITY))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment