use on_destruct for vines decay

(after_destruct is used by default mt_game leaf decay now)
master^2
Vanessa Ezekowitz 2017-03-30 23:16:09 -04:00
parent b9391f7bd2
commit d238862327
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ vines.register_vine = function( name, defs, biome )
end
override_nodes( biome.spawn_surfaces,{
after_destruct = function( pos )
on_destruct = function( pos )
local pos_min = { x = pos.x -1, y = pos.y - 1, z = pos.z - 1 }
local pos_max = { x = pos.x +1, y = pos.y + 1, z = pos.z + 1 }
local positions = minetest.find_nodes_in_area( pos_min, pos_max, "group:vines" )