Differences From
Artifact [4b89fedafd]:
- File
lib/node.lua
— part of check-in
[15f176a7fe]
at
2020-10-31 19:49:49
on branch trunk
— add background noise for condensers (temporary hack, need to write a proper environment sound framework as the fucking env_sounds module is completely impossible to extend), fix a couple of really stupid bugs, make higher-quality phials increase the chance of getting good runes so it's not a complete waste to burn iridium or levitanium powder on making them, add targeted disjunction and some other amulet spells
(user:
lexi,
size: 5167)
[annotate]
[blame]
[check-ins using]
69 69 end;
70 70
71 71 is_air = function(pos)
72 72 local n = sorcery.lib.node.force(pos)
73 73 if n.name == 'air' then return true end
74 74 local d = minetest.registered_nodes[n.name]
75 75 if not d then return false end
76 - return not d.walkable
76 + return (d.walkable == false) and (d.drawtype == 'airlike' or d.buildable_to == true)
77 77 end;
78 78
79 79 is_clear = function(pos)
80 80 if not sorcery.lib.node.is_air(pos) then return false end
81 81 local ents = minetest.get_objects_inside_radius(pos,0.5)
82 82 if #ents > 0 then return false end
83 83 return true