Skip to content

Instantly share code, notes, and snippets.

@octacian
Created March 2, 2017 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octacian/ed7a33af01e62c0f9c8be02ae84fadfa to your computer and use it in GitHub Desktop.
Save octacian/ed7a33af01e62c0f9c8be02ae84fadfa to your computer and use it in GitHub Desktop.
ME Power
function technic.get_or_load_node(pos)
local node = minetest.get_node_or_nil(pos)
if node then return node end
local vm = VoxelManip()
local MinEdge, MaxEdge = vm:read_from_map(pos, pos)
return minetest.get_node(pos)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment