From 7d3a61e595eee35dcedeea685744185deca5cbbb Mon Sep 17 00:00:00 2001 From: zichen <34205903+IFRFSX@users.noreply.github.com> Date: Sun, 26 Dec 2021 14:12:15 +0800 Subject: [PATCH] Fix toggling of autocrafter when `digilines` is not installed (#5) Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com> --- autocrafter.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autocrafter.lua b/autocrafter.lua index 8e3e779..2404188 100644 --- a/autocrafter.lua +++ b/autocrafter.lua @@ -277,8 +277,7 @@ minetest.register_node("pipeworks:autocrafter", { update_meta(meta, false) end, on_receive_fields = function(pos, formname, fields, sender) - if not fields.channel or (fields.quit and not fields.key_enter_field) - or not pipeworks.may_configure(pos, sender) then + if (fields.quit and not fields.key_enter_field) or not pipeworks.may_configure(pos, sender) then return end local meta = minetest.get_meta(pos)