mirror of
https://github.com/minetest-mods/mesecons.git
synced 2026-01-11 03:35:42 +01: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