1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 02:15:22 +02:00

Add minetest.bulk_swap_node (#15043)

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
Elias Åström
2024-09-24 22:25:34 +02:00
committed by GitHub
parent d8f1daac25
commit f65fe80e81
5 changed files with 67 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ core.add_node = core.set_node
-- we don't deal with metadata currently
core.swap_node = core.set_node
core.bulk_swap_node = core.bulk_set_node
function core.remove_node(pos)
return core.vmanip:set_node_at(pos, {name="air"})
end