Rearrange ping functions
This commit is contained in:
parent
74c47bb8dc
commit
99d8a96af4
14
script.lua
14
script.lua
@ -175,13 +175,6 @@ end
|
|||||||
function ping.setSnoring(state)
|
function ping.setSnoring(state)
|
||||||
snore_enabled=state
|
snore_enabled=state
|
||||||
end
|
end
|
||||||
-- }}}
|
|
||||||
|
|
||||||
function syncState()
|
|
||||||
ping.setArmor(armor_enabled)
|
|
||||||
ping.setVanilla(vanilla_enabled)
|
|
||||||
ping.setSnoring(snore_enabled)
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Toggle Vanilla ---
|
--- Toggle Vanilla ---
|
||||||
function setVanilla(state)
|
function setVanilla(state)
|
||||||
@ -204,6 +197,13 @@ function ping.setVanilla(state)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function syncState()
|
||||||
|
ping.setArmor(armor_enabled)
|
||||||
|
ping.setVanilla(vanilla_enabled)
|
||||||
|
ping.setSnoring(snore_enabled)
|
||||||
|
end
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Timer (not mine lol) -- {{{
|
-- Timer (not mine lol) -- {{{
|
||||||
do
|
do
|
||||||
local timers = {}
|
local timers = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user