diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-05 11:39:20 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-05 11:39:20 +0100 |
commit | 306c025713487b20a20e32e33277d2f215a70832 (patch) | |
tree | 681fa828ac02732b2670392e4d30c613c407a579 /dirt.lua | |
parent | a3a3934227ec7d56f526ad392690df92fa0165d5 (diff) |
Code tweak and tidy
Diffstat (limited to 'dirt.lua')
-rw-r--r-- | dirt.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -108,13 +108,13 @@ minetest.register_abm({ "group:ethereal_grass") -- count new grass nodes - for _,p in pairs(dirts) do + for n = 1, #dirts do - num = grasses[p] or 0 + num = grasses[dirts[n]] or 0 if num > curr_max then curr_max = num - curr_type = p + curr_type = dirts[n] end end |