mutators: add check for inn when enabling
This commit is contained in:
parent
36989758f3
commit
b8caf1d98e
1 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,10 @@ local function set_mutator_state(mutator, state)
|
|||
return
|
||||
end
|
||||
|
||||
if state and not mutator:can_be_enabled() then
|
||||
if state and (
|
||||
not mutator:can_be_enabled() or
|
||||
Managers.state and Managers.state.game_mode and Managers.state.game_mode._game_mode_key ~= "inn"
|
||||
) then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue