Removing reference to self because real machines methods do not use self

This commit is contained in:
Gabriel Moreira Minossi 2021-01-17 23:26:18 -03:00
parent f1d77a7eee
commit 54b99310f1

View File

@ -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