From 63efc395cd1496acbbd960c3e0e0701142abdcec Mon Sep 17 00:00:00 2001 From: raymoo Date: Sun, 4 Sep 2016 20:46:36 -0700 Subject: [PATCH] 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. --- technic/machines/other/frames.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,