Skip to content

Commit

Permalink
fix node dupe exploit in frames
Browse files Browse the repository at this point in the history
You can dupe nodes by placing them on a frame, because the on_rightclick wouldn't return the new itemstack.
  • Loading branch information
raymoo authored and kaeza committed Oct 14, 2016
1 parent 99bebc8 commit 63efc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion technic/machines/other/frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 63efc39

Please sign in to comment.