aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorbenrob0329 <ben@innovationplex.com>2021-04-13 14:02:43 -0400
committerGitHub <noreply@github.com>2021-04-13 20:02:43 +0200
commita106bfd456509b676ccba0ac9bef75c214819028 (patch)
tree929a16ae5cbe49f401d5a11064b77d1b72b5b39e /builtin/game
parentbbe120308f2944eade833b4f16cfc3b42b01fa34 (diff)
downloadminetest-a106bfd456509b676ccba0ac9bef75c214819028.tar.gz
minetest-a106bfd456509b676ccba0ac9bef75c214819028.tar.bz2
minetest-a106bfd456509b676ccba0ac9bef75c214819028.zip
Also return the ObjectRef from minetest.spawn_falling_node() (#11184)
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/falling.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua
index 057d0d0ed..5450542ff 100644
--- a/builtin/game/falling.lua
+++ b/builtin/game/falling.lua
@@ -407,7 +407,7 @@ local function convert_to_falling_node(pos, node)
obj:get_luaentity():set_node(node, metatable)
core.remove_node(pos)
- return true
+ return true, obj
end
function core.spawn_falling_node(pos)