diff options
author | sfan5 <sfan5@live.de> | 2019-12-16 19:13:43 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-12-16 21:24:34 +0100 |
commit | db7e59f4725a9516314ea0148d1bcaf250280e32 (patch) | |
tree | 6f442b72d357d75cf3ff8ee7b4dfcaddeca8458a /builtin/game/item.lua | |
parent | b50dc43f67332e24c93dd8ea8edb8654d4753b11 (diff) | |
download | minetest-db7e59f4725a9516314ea0148d1bcaf250280e32.tar.gz minetest-db7e59f4725a9516314ea0148d1bcaf250280e32.tar.bz2 minetest-db7e59f4725a9516314ea0148d1bcaf250280e32.zip |
Correct documentation around minetest.item_place
The code that calls minetest.item_place_object was removed
in 2013 in commit fc61c8809b9a1d47d9f117446764107a56cec956.
Diffstat (limited to 'builtin/game/item.lua')
-rw-r--r-- | builtin/game/item.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 8041d557e..00c1912fc 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -398,6 +398,7 @@ function core.item_place_node(itemstack, placer, pointed_thing, param2, return itemstack, true end +-- deprecated, item_place does not call this function core.item_place_object(itemstack, placer, pointed_thing) local pos = core.get_pointed_thing_position(pointed_thing, true) if pos ~= nil then @@ -419,6 +420,7 @@ function core.item_place(itemstack, placer, pointed_thing, param2) end end + -- Place if node, otherwise do nothing if itemstack:get_definition().type == "node" then return core.item_place_node(itemstack, placer, pointed_thing, param2) end |