Skip to content

Commit

Permalink
chore: add a second update tab with 1 tick delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Feb 12, 2024
1 parent 1cc4045 commit 9d02d6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class VanishManager(
hidePlayer(player)
// Also hide player after 1 tick, so it works on legacy minecraft versions
Ruom.runSync({
updateTabState(player, GameMode.SPECTATOR)
hidePlayer(player)
}, 1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import io.papermc.lib.PaperLib
import ir.syrent.velocityvanish.spigot.VelocityVanishSpigot
import ir.syrent.velocityvanish.spigot.ruom.Ruom
import ir.syrent.velocityvanish.spigot.storage.Settings
import ir.syrent.velocityvanish.spigot.utils.ServerVersion
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerAdvancementDoneEvent

Expand Down

0 comments on commit 9d02d6a

Please sign in to comment.