summaryrefslogtreecommitdiff
path: root/dirt.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-05 11:39:20 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-05 11:39:20 +0100
commit306c025713487b20a20e32e33277d2f215a70832 (patch)
tree681fa828ac02732b2670392e4d30c613c407a579 /dirt.lua
parenta3a3934227ec7d56f526ad392690df92fa0165d5 (diff)
Code tweak and tidy
Diffstat (limited to 'dirt.lua')
-rw-r--r--dirt.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/dirt.lua b/dirt.lua
index c3f4c46..f68cb8d 100644
--- a/dirt.lua
+++ b/dirt.lua
@@ -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