merge upstream commit: Always return the leftover ItemStack for on_place and on_rightclick

This commit is contained in:
Tim 2016-07-01 22:43:02 +02:00 committed by tchncs
parent 62d8261e42
commit 2052664a30
8 changed files with 713 additions and 8 deletions

View file

@ -91,8 +91,9 @@ function beds.register_bed(name, def)
destruct_bed(pos, 1)
end,
on_rightclick = function(pos, node, clicker)
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
beds.on_rightclick(pos, clicker)
return itemstack
end,
on_rotate = function(pos, node, user, mode, new_param2)