Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tenplus1 authored and sfan5 committed Mar 29, 2016
1 parent 0338c2e commit e72b8f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/game/falling.lua
Expand Up @@ -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
Expand Down

0 comments on commit e72b8f2

Please sign in to comment.