Quantcast

prevent this from loading in bags are not there

Darthpred [07-20-16 - 03:57]
prevent this from loading in bags are not there
Filename
ElvUI_SLE/modules/professions/deconstruct.lua
diff --git a/ElvUI_SLE/modules/professions/deconstruct.lua b/ElvUI_SLE/modules/professions/deconstruct.lua
index e3b17ea..8ed8215 100644
--- a/ElvUI_SLE/modules/professions/deconstruct.lua
+++ b/ElvUI_SLE/modules/professions/deconstruct.lua
@@ -319,6 +319,7 @@ function Pr:ConstructRealDecButton()
 end

 function Pr:InitializeDeconstruct()
+	if not E.private.bags.enable then return end
 	Pr:Construct_BagButton()
 	Pr:ConstructRealDecButton()