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

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

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

by mauvebic » Tue Apr 17, 2012 21:36

How do i avoid placing nodes in unloaded chunks?
Last edited by mauvebic on Wed Apr 18, 2012 00:36, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Wed Apr 18, 2012 14:32

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
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron