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 paramat
parent e38099225c
commit 71c7e21669
6 changed files with 20 additions and 15 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)