pushing bug fixed

This commit is contained in:
Joachim Stolberg 2018-08-08 19:18:02 +02:00
parent b29893e96d
commit 8c77ded9d5

@ -187,7 +187,11 @@ tubelib.register_node("tubelib_addons3:pushing_chest", {}, {
on_push_item = function(pos, side, item) on_push_item = function(pos, side, item)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
if configured(pos, item) then if configured(pos, item) then
return tubelib.put_item(meta, "main", item) if tubelib.put_item(meta, "main", item) then
return true
else
return tubelib.put_item(meta, "shift", item)
end
else else
return tubelib.put_item(meta, "shift", item) return tubelib.put_item(meta, "shift", item)
end end