You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2026-06-20 16:32:28 +02:00
commands - new set command
This commit is contained in:
@@ -447,6 +447,17 @@ function Public.get(key)
|
|||||||
end
|
end
|
||||||
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(
|
Event.on_init(
|
||||||
function()
|
function()
|
||||||
this.creative_are_you_sure = false
|
this.creative_are_you_sure = false
|
||||||
|
|||||||
Reference in New Issue
Block a user