diff --git a/components.lua b/components.lua index cbd1121..180cdea 100644 --- a/components.lua +++ b/components.lua @@ -69,6 +69,7 @@ end end + --[[ Tier 2 Hydro Containers @@ -129,6 +130,7 @@ if thirsty.config.register_canteens and end + ------------------------------- -- Tier 3 Drinking Fountain -- ------------------------------- @@ -256,8 +258,8 @@ if thirsty.config.register_fountains and end ---[[ +--[[ Tier 5 These amulets don't do much; the actual code is above, where diff --git a/init.lua b/init.lua index 9a9322f..61d9146 100644 --- a/init.lua +++ b/init.lua @@ -48,10 +48,10 @@ is still called "thirst", but the visible bar is that of thirsty = {} -- simple toboolean function that handles nil -thirsty.tobool = function(s_string) - if s_string == nil then +thirsty.tobool = function(value) + if value == nil then return nil - elseif s_string == "true" or s_string == 1 then + elseif value == "true" or value == 1 then return true else return false