use swap_node() where possible, for speed

Этот коммит содержится в:
Vanessa Dannenberg
2018-10-25 10:27:54 -04:00
родитель 2c7a776c7f
Коммит 77093e428a
22 изменённых файлов: 156 добавлений и 156 удалений

Просмотреть файл

@@ -58,7 +58,7 @@ abstract_molehills.place_molehill = function(pos)
and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z-1}).name ~= "air"
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z+1}).name ~= "air"
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z-1}).name ~= "air" then
minetest.set_node(right_here, {name="molehills:molehill"})
minetest.swap_node(right_here, {name="molehills:molehill"})
end
end