From af7c2894ae55b995e543a779177e14bcd2e1118d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 1 Dec 2012 18:19:19 -0500 Subject: [PATCH] Added default setting for seed_diff (0). Accidentally left it out, it is needed to allow old mods to use the new function without changes. --- plants/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plants/init.lua b/plants/init.lua index 8739176..8af115c 100644 --- a/plants/init.lua +++ b/plants/init.lua @@ -91,6 +91,7 @@ end -- The spawning ABM spawn_on_surfaces = function(sdelay, splant, sradius, schance, ssurface, savoid, seed_diff, lightmin, lightmax, nneighbors, ocount) + if seed_diff == nil then seed_diff = 0 end if lightmin == nil then lightmin = 0 end if lightmax == nil then lightmax = LIGHT_MAX end if nneighbors == nil then nneighbors = ssurface end