1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-27 22:38:18 +02:00

Utils fix

This commit is contained in:
Gerkiz
2025-10-26 21:25:15 +01:00
parent d2d1f71d73
commit db98bf6db1
2 changed files with 12 additions and 6 deletions

View File

@@ -348,6 +348,14 @@ local function execute(event)
return reject('Inputted value is not of type boolean. Valid values are: true, false.')
end
--[[ if command_data.command_activated and param == 'true' then
return handle_error(output.command_is_active, 'utility/cannot_build')
end
if not command_data.command_activated and param == 'false' then
return handle_error(output.command_is_inactive, 'utility/cannot_build')
end ]]
if param == 'true' then
param = true
else