From d755d8a51b578df28513ba5b7a20e68f7bdb128c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 25 Aug 2016 22:39:56 +0200 Subject: Sort drop probabilities for max_drops==nil --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') 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 -- cgit v1.2.3