aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authortenplus1 <tenplus1@users.noreply.github.com>2016-03-27 21:09:35 +0100
committersfan5 <sfan5@live.de>2016-03-29 23:56:23 +0200
commite72b8f25ee192e25c641b9de8e134ec86f351342 (patch)
tree0ae0b84dc5e3ec0b4a4fb192ea266a8e9b019cbe /builtin
parent0338c2eb91ca2ba19551aaa23bbfb46552cee9ac (diff)
downloadminetest-e72b8f25ee192e25c641b9de8e134ec86f351342.tar.gz
minetest-e72b8f25ee192e25c641b9de8e134ec86f351342.tar.bz2
minetest-e72b8f25ee192e25c641b9de8e134ec86f351342.zip
stop falling.lua error
2016-03-27 15:47:01: ERROR[Main]: ServerError: Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): Node name is not set or is not a string! 2016-03-27 15:47:01: ERROR[Main]: stack traceback: 2016-03-27 15:47:01: ERROR[Main]: [C]: in function 'add_node' 2016-03-27 15:47:01: ERROR[Main]: /usr/share/minetest/builtin/game/falling.lua:96: in function </usr/share/minetest/builtin/game/falling.lua:43>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/falling.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua
index 29d94ae5e..3ab64f67e 100644
--- a/builtin/game/falling.lua
+++ b/builtin/game/falling.lua
@@ -93,7 +93,9 @@ core.register_entity(":__builtin:falling_node", {
end
end
-- Create node and remove entity
- core.add_node(np, self.node)
+ if core.registered_nodes[self.node.name] then
+ core.add_node(np, self.node)
+ end
self.object:remove()
nodeupdate(np)
return