summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 8d4d7cc..746f4a3 100644
--- a/init.lua
+++ b/init.lua
@@ -581,7 +581,7 @@ doc.new_category("nodes", {
end
end
-- Do some cleanup of the probability table
- if max == 1 then
+ if max == 1 or max == nil then
-- Sort by rarity
local comp = function(p1, p2)
return p1.rarity < p2.rarity