mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
rsio bugfixes
This commit is contained in:
parent
a6e1134dc3
commit
7d9a664d38
@ -86,12 +86,14 @@ function to_string(channel)
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
function is_valid_side(side)
|
||||
for _, s in pairs(redstone.getSides()) do
|
||||
if s == side then return true end
|
||||
if side ~= nil then
|
||||
for _, s in pairs(rs.getSides()) do
|
||||
if s == side then return true end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user