remove raw fn
This commit is contained in:
parent
54d6241679
commit
e7e35ad38c
1 changed files with 10 additions and 0 deletions
|
|
@ -264,4 +264,14 @@ function multiply_recipe(recipe, multiple)
|
|||
end
|
||||
end
|
||||
|
||||
-- Remove an element of type t and name from data.raw
|
||||
function util.remove_raw(t, name)
|
||||
for i, elem in pairs(data.raw[t]) do
|
||||
if elem.name == name then
|
||||
data.raw[t][i] = nil
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return util
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue