Fixed broken elseif

- Lua is weird.
This commit is contained in:
Deathwing777 2024-02-27 18:30:40 -08:00 committed by GitHub
parent 84d5e1ce3c
commit 6c30874736
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function nether.registry_update(player)
if nether.trap_players then
players_trapped_in_nether[pname] = in_nether
update_background(player, in_nether)
else if players_trapped_in_nether[pname]
elseif players_trapped_in_nether[pname] then
players_trapped_in_nether[pname] = nil
update_background(player, false)
end