From ad7b63b86971ccae7b1abc008196c9e9553b54ec Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 9 Jan 2016 12:25:33 +0000 Subject: Optimize and tidy code. --- sealife.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sealife.lua') diff --git a/sealife.lua b/sealife.lua index 8a7a245..41de5d0 100644 --- a/sealife.lua +++ b/sealife.lua @@ -166,15 +166,15 @@ minetest.register_abm({ if height < 14 and pos.y < 0 and minetest.get_node(pos).name == "default:water_source" then - minetest.set_node(pos, {name = "ethereal:seaweed"}) + minetest.swap_node(pos, {name = "ethereal:seaweed"}) end else pos.y = pos.y + 1 if minetest.get_node(pos).name == "default:water_source" then - minetest.set_node(pos, {name = "ethereal:coral"..sel}) + minetest.swap_node(pos, {name = "ethereal:coral"..sel}) end end end, -}) \ No newline at end of file +}) -- cgit v1.2.3