mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-08 17:47:30 +01:00
No timer for crying obsidian with a solid node below (#4754)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4754 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: kno10 <erich.schubert@gmail.com> Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
parent
0631319a00
commit
f83d8c07ad
@ -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