diff options
author | raymoo <raymoo@users.noreply.github.com> | 2016-09-04 20:46:36 -0700 |
---|---|---|
committer | Diego MartÃnez <kaeza@users.noreply.github.com> | 2016-10-14 05:41:31 -0300 |
commit | 63efc395cd1496acbbd960c3e0e0701142abdcec (patch) | |
tree | 21230b68d031d54c50d690b29902ebfe818e4fcd | |
parent | 99bebc800891ef83948122864ec1fceacb160010 (diff) |
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.
-rw-r--r-- | technic/machines/other/frames.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua index b3f39b9..2d630a2 100644 --- a/technic/machines/other/frames.lua +++ b/technic/machines/other/frames.lua @@ -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, |