#53 RTU redstone parse checks

This commit is contained in:
Mikayla Fischler
2022-05-18 14:30:48 -04:00
parent 790571b6fc
commit 62d5490dc8
2 changed files with 87 additions and 52 deletions

View File

@@ -107,6 +107,17 @@ util.filter_table = function (t, f, on_delete)
end
end
-- check if a table contains the provided element
---@param t table table to check
---@param element any element to check for
util.table_contains = function (t, element)
for i = 1, #t do
if t[i] == element then return true end
end
return false
end
-- MEKANISM POWER --
-- function kFE(fe) return fe / 1000 end