Skip to content

Commit

Permalink
change s_string to value
Browse files Browse the repository at this point in the history
  • Loading branch information
sirrobzeroone committed Sep 26, 2021
1 parent 9d8da53 commit 78b5587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ end

end


--[[
Tier 2 Hydro Containers
Expand Down Expand Up @@ -129,6 +130,7 @@ if thirsty.config.register_canteens and

end


-------------------------------
-- Tier 3 Drinking Fountain --
-------------------------------
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78b5587

Please sign in to comment.