Skip to content

Commit e72b8f2

Browse files
tenplus1sfan5
authored andcommittedMar 29, 2016
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>
1 parent 0338c2e commit e72b8f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎builtin/game/falling.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ core.register_entity(":__builtin:falling_node", {
9393
end
9494
end
9595
-- Create node and remove entity
96-
core.add_node(np, self.node)
96+
if core.registered_nodes[self.node.name] then
97+
core.add_node(np, self.node)
98+
end
9799
self.object:remove()
98100
nodeupdate(np)
99101
return

0 commit comments

Comments
 (0)
Please sign in to comment.