mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-01 14:17:29 +01:00
no timer for crying obsidian without air below
This commit is contained in:
parent
f1181d956a
commit
908145f8d1
@ -1495,6 +1495,13 @@ minetest.register_abm({
|
||||
interval = 5,
|
||||
chance = 10,
|
||||
action = function(pos, node)
|
||||
local below = minetest.get_node(vector.offset(pos, 0, -1, 0))
|
||||
local ndef = minetest.registered_nodes[below.name]
|
||||
if not ndef then return end -- ignore, most likely not loaded
|
||||
if ndef.walkable and (ndef.node_box == nil or ndef.node_box.type == "regular")
|
||||
and (ndef.collision_box == nil or ndef.collision_box.type == "regular") then
|
||||
return -- completely solid block
|
||||
end
|
||||
minetest.after(0.1 + random() * 1.4, function()
|
||||
local pt = table.copy(crobby_particle)
|
||||
pt.size = 1.3 + random() * 1.2
|
||||
|
Loading…
Reference in New Issue
Block a user