Version 1.0.1

willneedit [03-16-17 - 16:57]
Version 1.0.1
Filename
InventoryManager.txt
Rulesets.lua
diff --git a/InventoryManager.txt b/InventoryManager.txt
index ae32cd3..d648a36 100644
--- a/InventoryManager.txt
+++ b/InventoryManager.txt
@@ -2,7 +2,7 @@
 ## APIVersion: 100018
 ## OptionalDependsOn: LibAddonMenu-2.0
 ## SavedVariables: IMSavedVars
-## Version: 1.0.0
+## Version: 1.0.1
 ## Author: iwontsay
 ## Description: iwontsay's Inventory Manager

diff --git a/Rulesets.lua b/Rulesets.lua
index 6bd8bba..545a8ec 100644
--- a/Rulesets.lua
+++ b/Rulesets.lua
@@ -78,8 +78,6 @@ end

 function IM_Rule:Filter(data)

-	if data.junk then return false end
-
 	filterList = InventoryManager.filtertypes[self.filterType][self.filterSubType]

 	if #filterList > 0 then
@@ -169,7 +167,9 @@ function IM_Ruleset:Match(data)
 		-- If it's stolen, we can't put it in the bank.
 		if res then
 			if data.locked then res = false
-			elseif data.stolen and v.action == IM_Ruleset.ACTION_STASH then res = false end
+			elseif data.junk and v.action ~= IM_Ruleset.ACTION_DESTROY then res = false
+			elseif data.stolen and v.action == IM_Ruleset.ACTION_STASH then res = false
+			end
 		end

 		if res then