plugins/cheat: don't turn off unless on (nw)
This commit is contained in:
parent
f08627ebdc
commit
200fc9859a
@ -329,7 +329,7 @@ function cheat.startplugin()
|
|||||||
index = index - #cheats
|
index = index - #cheats
|
||||||
if index == 2 then
|
if index == 2 then
|
||||||
for num, cheat in pairs(cheats) do
|
for num, cheat in pairs(cheats) do
|
||||||
if cheat.script and cheat.script.off then
|
if cheat.enabled and cheat.script.off then
|
||||||
cheat.script.off()
|
cheat.script.off()
|
||||||
end
|
end
|
||||||
cheat.enabled = false
|
cheat.enabled = false
|
||||||
@ -340,7 +340,7 @@ function cheat.startplugin()
|
|||||||
end
|
end
|
||||||
elseif index == 3 then
|
elseif index == 3 then
|
||||||
for num, cheat in pairs(cheats) do
|
for num, cheat in pairs(cheats) do
|
||||||
if cheat.script and cheat.script.off then
|
if cheat.enabled and cheat.script.off then
|
||||||
cheat.script.off()
|
cheat.script.off()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user