Compat shim for minetest.swap_node, lightstone conducts from the bottom.

This commit is contained in:
Uberi
2013-11-30 21:23:39 -05:00
parent 3105ae7084
commit b4654cedb7
2 changed files with 34 additions and 11 deletions

View File

@ -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