bugssss...

This commit is contained in:
kepler155c
2017-09-28 06:33:43 -04:00
parent fcc750a36a
commit 3c494e82de
3 changed files with 5 additions and 4 deletions

View File

@@ -466,7 +466,9 @@ local function randomSapling()
table.insert(ALL_SAPLINGS, slot.key)
end
end
sapling = ALL_SAPLINGS[math.random(1, #ALL_SAPLINGS)]
if #ALL_SAPLINGS > 0 then
sapling = ALL_SAPLINGS[math.random(1, #ALL_SAPLINGS)]
end
end
return sapling