Skip to content

Commit

Permalink
Fix toggling of autocrafter when digilines is not installed (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
  • Loading branch information
IFRFSX and S-S-X committed Dec 26, 2021
1 parent a70115a commit 7d3a61e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autocrafter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d3a61e

Please sign in to comment.