Page 1 of 1

[solved] Placing nodes in air (and not get content_ignore warnings)

PostPosted: Tue Apr 17, 2012 21:36
by mauvebic
How do i avoid placing nodes in unloaded chunks?

PostPosted: Wed Apr 18, 2012 14:32
by sfan5
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function place_node_safe(pos,node)
  if minetest.env:get_node(pos).name == "ignore" then
    return false
  else
    minetest.env:add_node(pos, node)
    return true
  end
end