1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00

commands - new set command

This commit is contained in:
Gerkiz 2020-12-29 00:02:20 +01:00
parent 822972a8e1
commit c9c820709e

View File

@ -447,6 +447,17 @@ function Public.get(key)
end
end
function Public.set(key, value)
if key and (value or value == false) then
this[key] = value
return this[key]
elseif key then
return this[key]
else
return this
end
end
Event.on_init(
function()
this.creative_are_you_sure = false