Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using revival block to prevent deprecation warning #1560

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

mexikoedi
Copy link
Contributor

Replaced false with REVIVAL_BLOCK_NONE to prevent the following deprecation warning when you try to respawn someone from the new admin menu:

[ttt2] [DEPRECATION WARNING]: You should use the REVIVAL_BLOCK enum here.
  1. Revive - addons/ttt2/gamemodes/terrortown/gamemode/server/sv_player_ext.lua:849
   2. PlayerRespawn - addons/ttt2/lua/ttt2/libraries/admin.lua:129
    3. func - addons/ttt2/lua/ttt2/libraries/admin.lua:230
     4. unknown - lua/includes/extensions/net.lua:38

@saibotk saibotk added the skip-changelog Skips the requirement for an entry in the CHANGELOG.md label Jun 19, 2024
@saibotk saibotk enabled auto-merge (squash) June 19, 2024 05:29
@saibotk saibotk disabled auto-merge June 19, 2024 05:30
@Histalek Histalek merged commit 886747e into TTT-2:master Jun 19, 2024
4 of 5 checks passed
@mexikoedi mexikoedi deleted the revival-fix branch June 19, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skips the requirement for an entry in the CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants