summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-25 22:39:56 +0200
committerWuzzy <almikes@aol.com>2016-08-25 22:39:56 +0200
commitd755d8a51b578df28513ba5b7a20e68f7bdb128c (patch)
tree8a08fb6de7577905e0305c35ea3ab844d5abdcb6
parent52cc5f7bd7628c2c20835bb6966af30b7d184cba (diff)
Sort drop probabilities for max_drops==nil
-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