mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-04 02:16:05 -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
|