forked from VoxeLibre/VoxeLibre
Bug fix when hardcore is disabled; not updating the gamemode.
This commit is contained in:
parent
def4aac944
commit
c1bae69844
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue