mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 18:06:04 -04:00
13 lines
335 B
Lua
Executable File
13 lines
335 B
Lua
Executable File
-- Import section
|
|
Machine = require("data.datasource.machine")
|
|
Alarm = require("api.sound.alarm")
|
|
--
|
|
|
|
local function exec(address, name)
|
|
local multiblock = Machine.getMachine(address, name, Machine.types.multiblock)
|
|
local workAllowed = multiblock:isWorkAllowed()
|
|
multiblock:setWorkAllowed(not workAllowed)
|
|
end
|
|
|
|
return exec
|