forked from mtcontrib/pipeworks
fix incorrect usage of after_place_node
This commit is contained in:
parent
6a9fdae4a1
commit
c80eeadf9c
@ -110,7 +110,9 @@ minetest.register_node("pipeworks:autocrafter", {
|
|||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
return (inv:is_empty("src") and inv:is_empty("recipe") and inv:is_empty("dst"))
|
return (inv:is_empty("src") and inv:is_empty("recipe") and inv:is_empty("dst"))
|
||||||
end,
|
end,
|
||||||
after_place_node = tube_scanforobjects(pos),
|
after_place_node = function(pos)
|
||||||
|
tube_scanforobjects(pos)
|
||||||
|
end,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
tube_scanforobjects(pos)
|
tube_scanforobjects(pos)
|
||||||
autocrafterCache[minetest.hash_node_position(pos)] = nil
|
autocrafterCache[minetest.hash_node_position(pos)] = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user