2019-01-06 12:02:37 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-03-12 21:52:00 -04:00
|
|
|
local minetest, nodecore
|
|
|
|
= minetest, nodecore
|
2019-01-06 12:02:37 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2019-03-12 21:52:00 -04:00
|
|
|
function nodecore.buildable_to(thing)
|
|
|
|
if not thing.name then
|
|
|
|
thing = nodecore.underride(thing, minetest.get_node(thing))
|
|
|
|
end
|
|
|
|
if thing.name == "ignore" then return end
|
|
|
|
local def = minetest.registered_items[thing.name] or {}
|
|
|
|
return def.buildable_to
|
2019-01-06 12:02:37 -05:00
|
|
|
end
|