fix node dupe exploit in frames

You can dupe nodes by placing them on a frame, because the on_rightclick wouldn't return the new itemstack.
This commit is contained in:
raymoo 2016-09-04 20:46:36 -07:00 committed by Diego Martínez
parent 99bebc8008
commit 63efc395cd
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ local nodeboxes= {
else
--local pointed_thing = {type = "node", under = pos}
if pointed_thing then
minetest.item_place_node(itemstack, placer, pointed_thing)
return minetest.item_place_node(itemstack, placer, pointed_thing)
end
end
end,