mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-03 18:06:04 -04:00
Removing reference to self because real machines methods do not use self
This commit is contained in:
parent
f1d77a7eee
commit
54b99310f1
@ -5,8 +5,8 @@ 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)
|
||||
local workAllowed = multiblock.isWorkAllowed()
|
||||
multiblock.setWorkAllowed(not workAllowed)
|
||||
end
|
||||
|
||||
return exec
|
||||
|
Loading…
x
Reference in New Issue
Block a user