rsio bugfixes
This commit is contained in:
parent
a6e1134dc3
commit
7d9a664d38
@ -86,12 +86,14 @@ function to_string(channel)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function is_valid_channel(channel)
|
function is_valid_channel(channel)
|
||||||
return channel > 0 and channel <= A_T_FLOW_RATE
|
return channel ~= nil and channel > 0 and channel <= RS_IO.A_T_FLOW_RATE
|
||||||
end
|
end
|
||||||
|
|
||||||
function is_valid_side(side)
|
function is_valid_side(side)
|
||||||
for _, s in pairs(redstone.getSides()) do
|
if side ~= nil then
|
||||||
if s == side then return true end
|
for _, s in pairs(rs.getSides()) do
|
||||||
|
if s == side then return true end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user