Skip to content
Permalink
Browse files

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 27, 2016
1 parent 0338c2e commit e72b8f25ee192e25c641b9de8e134ec86f351342
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit e72b8f2

Please sign in to comment.
You can’t perform that action at this time.