1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-30 15:20:34 +02:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
2021-05-09 21:42:46 +02:00
3 changed files with 19 additions and 2 deletions

View File

@ -279,7 +279,10 @@ minetest.register_node("pipeworks:autocrafter", {
update_meta(meta, false)
end,
on_receive_fields = function(pos, formname, fields, sender)
if not pipeworks.may_configure(pos, sender) then return end
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)
if fields.on then
update_meta(meta, false)