mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 13:56:02 +02:00
Compat shim for minetest.swap_node, lightstone conducts from the bottom.
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
minetest.swap_node = minetest.swap_node or function(pos, node)
|
||||
local data = minetest.get_meta(pos):to_table()
|
||||
minetest.add_node(pos, node)
|
||||
minetest.get_meta(pos):from_table(data)
|
||||
end
|
Reference in New Issue
Block a user