Always return the leftover ItemStack for on_place and on_rightclick

Esse commit está contido em:
Tim
2016-07-01 22:43:02 +02:00
commit de paramat
commit 71c7e21669
6 arquivos alterados com 20 adições e 15 exclusões

Ver arquivo

@@ -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)