Compare commits

...

2 Commits

Author SHA1 Message Date
3789b2b3a2
gay idiot detector: handle player disappear 2023-07-01 13:05:28 -04:00
4f390aaa94
Add callback for armor config change 2023-07-01 13:05:14 -04:00

View File

@ -78,7 +78,13 @@ do
["aquatic_override"]=false,
["is_cat"]=true
}
sharedconfig.load_defaults(defaults)
local function armor_refresh_callback()
if player:isLoaded() then pmRefresh() end
end
local callbacks={
["armor_enabled"]=armor_refresh_callback
}
sharedconfig.load_defaults(defaults, callbacks)
end
local function printSettings()
@ -829,7 +835,8 @@ do
end
set_gay_idiot_nearby(nearby_ticks>=5*20)
else
set_gay_idiot_nearby(false)
end
end
end