diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-09 12:25:33 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-09 12:25:33 +0000 |
commit | ad7b63b86971ccae7b1abc008196c9e9553b54ec (patch) | |
tree | 05fe8e2a0ea0e9b8d4939cffaed46e6abb0cf9f4 /sealife.lua | |
parent | 94873618b17859a6f3cc9c3a02dcc88b511075cf (diff) |
Optimize and tidy code.
Diffstat (limited to 'sealife.lua')
-rw-r--r-- | sealife.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 +}) |