diff options
Diffstat (limited to 'mesecons/legacy.lua')
-rw-r--r-- | mesecons/legacy.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesecons/legacy.lua b/mesecons/legacy.lua index e69de29..a68bab4 100644 --- a/mesecons/legacy.lua +++ b/mesecons/legacy.lua @@ -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
\ No newline at end of file |