From d7225c1fd7e60731e6b4551488cccbd75171b522 Mon Sep 17 00:00:00 2001 From: Pao Date: Sat, 28 Jan 2023 02:00:53 +0100 Subject: [PATCH] fuck me --- media/lua/client/TOC_ClientOptions.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/media/lua/client/TOC_ClientOptions.lua b/media/lua/client/TOC_ClientOptions.lua index 6e9d69c..e7a4224 100644 --- a/media/lua/client/TOC_ClientOptions.lua +++ b/media/lua/client/TOC_ClientOptions.lua @@ -11,16 +11,22 @@ local options = { if ModOptions and ModOptions.getInstance then print("TOC: Found ModOptions, loading it") local settings = ModOptions:getInstance(options, "Amputation2", "The Only Cure but better") - + ModOptions:loadFile() + settings.names = { roll_up_sleeves_on_amputated_limbs = "Roll up jacket sleeves for amputated limbs", } - ModOptions:loadFile() 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 + + -- Run it now since we're in the menu, presumably TocSetSleeves(options.roll_up_sleeves_on_amputated_limbs)