From 54b99310f19032a2722577eec643190ef039eb48 Mon Sep 17 00:00:00 2001 From: Gabriel Moreira Minossi Date: Sun, 17 Jan 2021 23:26:18 -0300 Subject: [PATCH] Removing reference to self because real machines methods do not use self --- .../domain/multiblock/toggle-multiblock-work.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Programs/monitor-system/domain/multiblock/toggle-multiblock-work.lua b/Programs/monitor-system/domain/multiblock/toggle-multiblock-work.lua index b0ce22b..b5039ef 100755 --- a/Programs/monitor-system/domain/multiblock/toggle-multiblock-work.lua +++ b/Programs/monitor-system/domain/multiblock/toggle-multiblock-work.lua @@ -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