Bug fix when hardcore is disabled; not updating the gamemode.

This commit is contained in:
MysticTempest 2022-07-14 11:17:07 -05:00
parent def4aac944
commit c1bae69844
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ function mcl_hardcore.spectator_mode_disabled(player)
player:set_armor_groups({immortal=0})
-- Try to preserve privs somewhat
if meta:get_string("gamemode") == "creative" then
if meta:get_string("gamemode") == "spectator" then
meta:set_string("gamemode","")
elseif meta:get_string("gamemode") == "creative" then
privs.fast = nil
privs.noclip = nil
privs.interact = true