1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

Minor change

This commit is contained in:
Gerkiz 2022-03-15 19:59:44 +01:00
parent 840937015b
commit a2a0e92ad1

View File

@ -252,9 +252,13 @@ function Public.set(key, value)
end
end
function Public.remove(key)
function Public.remove(key, sub_key)
if key then
this[key] = nil
if this[key] and this[key][sub_key] then
this[key][sub_key] = nil
elseif this[key] then
this[key] = nil
end
end
end