# HG changeset patch # User Asa Ayers # Date 1291961028 28800 # Node ID 090e466fd95658029d2ab5709deb2efc658fc503 # Parent 613fd4bc699956838c296c1845f340c735fd1e42 Fixed a bug that caused an error if you had a crafting rule that doesn't include a bonus. diff -r 613fd4bc6999 -r 090e466fd956 CHANGELOG.txt --- a/CHANGELOG.txt Sat Dec 04 08:41:44 2010 -0800 +++ b/CHANGELOG.txt Thu Dec 09 22:03:48 2010 -0800 @@ -1,3 +1,7 @@ +2010-12-04 Asa Ayers + +- Fixed a bug that caused an error if you had a crafting rule that doesn't include a bonus. + 2010-12-04 Asa Ayers - Ticket 45 - Fixed a bug that caused the crafting window to craft if you turn off all of the deciders. diff -r 613fd4bc6999 -r 090e466fd956 Modules/CraftingRules.lua --- a/Modules/CraftingRules.lua Sat Dec 04 08:41:44 2010 -0800 +++ b/Modules/CraftingRules.lua Thu Dec 09 22:03:48 2010 -0800 @@ -211,7 +211,7 @@ local function runRule(rule, itemName, itemID, data) local searches = {strsplit(',', rule.search:upper())} local bonus = 0 - if data.count == 0 then + if data.count == 0 and rule.bonus_queue then bonus = rule.bonus_queue end