clean crap up

This commit is contained in:
Pao
2023-01-28 02:08:51 +01:00
parent efdecc177f
commit 3ac3104e66
3 changed files with 3 additions and 29 deletions

View File

@@ -21,20 +21,11 @@ if ModOptions and ModOptions.getInstance then
local roll_up_sleeves = settings:getData("roll_up_sleeves_on_amputated_limbs")
if roll_up_sleeves == nil then
print("TOC: SOmething is very wrong with mod options")
end
print("TOC: Rolling up sleeves => " .. tostring(options.roll_up_sleeves_on_amputated_limbs))
-- Run it now since we're in the menu, presumably
TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs)
function roll_up_sleeves:OnApply(val)
self:resetLua()
end

View File

@@ -1,17 +0,0 @@
local options = TOC_Options
-- TODO Can't trigger OnGameBoot from here since it's client only
-- Check actual options at game loading.
Events.OnGameStart.Add(function()
if not isClient() then -- only host may take these options
print("Roll up sleeves for amputated limbs = ", options.rollUpSleeveForAmputatedLimbs)
end
end)