Make falling nodes fall when the node under them is destroyed
This commit is contained in:
parent
b61f31322a
commit
2d815074b2
1
init.lua
1
init.lua
@ -5,6 +5,7 @@ local destroy = function(pos)
|
||||
local nodename = minetest.env:get_node(pos).name
|
||||
if nodename ~= "air" then
|
||||
minetest.env:remove_node(pos)
|
||||
nodeupdate(pos)
|
||||
if minetest.registered_nodes[nodename].groups.flammable ~= nil then
|
||||
minetest.env:set_node(pos, {name="fire:basic_flame"})
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user