Make falling nodes fall when the node under them is destroyed

master
PilzAdam 2012-09-08 13:28:10 +02:00
parent b61f31322a
commit 2d815074b2
1 changed files with 1 additions and 0 deletions

View File

@ -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