1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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