From a106bfd456509b676ccba0ac9bef75c214819028 Mon Sep 17 00:00:00 2001 From: benrob0329 Date: Tue, 13 Apr 2021 14:02:43 -0400 Subject: Also return the ObjectRef from minetest.spawn_falling_node() (#11184) --- builtin/game/falling.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') 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) -- cgit v1.2.3