IronAge adapted
Construction plan added power bugfix formspec power_image added
This commit is contained in:
parent
5b721c62e3
commit
ba60bbba38
14
basis/lib.lua
Normal file
14
basis/lib.lua
Normal file
@ -0,0 +1,14 @@
|
||||
function techage.range(val, min, max)
|
||||
val = tonumber(val)
|
||||
if val < min then return min end
|
||||
if val > max then return max end
|
||||
return val
|
||||
end
|
||||
|
||||
function techage.one_of(val, selection)
|
||||
for _,v in ipairs(selection) do
|
||||
if val == v then return val end
|
||||
end
|
||||
return selection[1]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user