mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-08-20 20:34:10 +02:00
Added on_blast support for explosions (thanks to MT-Modder)
This commit is contained in:
parent
e3374b7a29
commit
5fcccfae68
6
init.lua
6
init.lua
@ -166,6 +166,12 @@ function explosion(pos, radius)
|
||||
and data[vi] ~= c_chest then
|
||||
|
||||
local n = node_ok(p).name
|
||||
local on_blast = minetest.registered_nodes[n].on_blast
|
||||
|
||||
if on_blast then
|
||||
return on_blast(p)
|
||||
end
|
||||
|
||||
|
||||
if minetest.get_item_group(n, "unbreakable") ~= 1 then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user