mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 02:10:30 +01:00
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:
parent
99bebc8008
commit
63efc395cd
@ -320,7 +320,7 @@ local nodeboxes= {
|
|||||||
else
|
else
|
||||||
--local pointed_thing = {type = "node", under = pos}
|
--local pointed_thing = {type = "node", under = pos}
|
||||||
if pointed_thing then
|
if pointed_thing then
|
||||||
minetest.item_place_node(itemstack, placer, pointed_thing)
|
return minetest.item_place_node(itemstack, placer, pointed_thing)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user