mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-04 21:50:46 -04:00
Use new VoxelManip cleanup API
This commit is contained in:
parent
838ad60ad0
commit
0553e733b0
3 changed files with 18 additions and 13 deletions
|
@ -132,7 +132,9 @@ function default.grow_tree(pos, is_apple_tree, bad)
|
|||
|
||||
vm:set_data(data)
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
if vm.close ~= nil then
|
||||
vm:close()
|
||||
end
|
||||
end
|
||||
|
||||
-- Jungle tree
|
||||
|
@ -184,7 +186,9 @@ function default.grow_jungle_tree(pos, bad)
|
|||
|
||||
vm:set_data(data)
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
if vm.close ~= nil then
|
||||
vm:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
@ -310,7 +314,9 @@ function default.grow_pine_tree(pos, snow)
|
|||
|
||||
vm:set_data(data)
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
if vm.close ~= nil then
|
||||
vm:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue