forked from Mirrorlandia_minetest/minetest
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>
This commit is contained in:
parent
0338c2eb91
commit
e72b8f25ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user