fixed an exception
git [07-06-18 - 19:14]
diff --git a/FurnitureCatalogue.txt b/FurnitureCatalogue.txt
index 046f2e6..d8d85f2 100644
--- a/FurnitureCatalogue.txt
+++ b/FurnitureCatalogue.txt
@@ -1,6 +1,6 @@
## Title: FurnitureCatalogue
## Author: manavortex
-## Version: 2.5.10
+## Version: 2.5.11
## APIVersion: 100023
## SavedVariables: FurnitureCatalogue_Settings
## OptionalDependsOn: pChat
diff --git a/FurnitureCatalogue_DevUtility/00_startup.lua b/FurnitureCatalogue_DevUtility/00_startup.lua
index eb9e5a8..14deaba 100644
--- a/FurnitureCatalogue_DevUtility/00_startup.lua
+++ b/FurnitureCatalogue_DevUtility/00_startup.lua
@@ -1,3 +1,5 @@
+
+
local UNITTAG_PLAYER = "player"
local function whoami()
return GetUnitDisplayName(UNITTAG_PLAYER)
diff --git a/FurnitureCatalogue_DevUtility/ContextMenu.lua b/FurnitureCatalogue_DevUtility/ContextMenu.lua
index e689261..efcefb1 100644
--- a/FurnitureCatalogue_DevUtility/ContextMenu.lua
+++ b/FurnitureCatalogue_DevUtility/ContextMenu.lua
@@ -4,6 +4,7 @@ local function whoami()
end
local isMana = string.find(whoami(), "@manavortex") or string.find(whoami(), "@Manorin")
+if not isMana then return end
FurCDevControl_LinkHandlerBackup_OnLinkMouseUp = nil
@@ -148,7 +149,7 @@ end
-function FurCDevUtility.OnControlMouseUp(control, button)
+function this.OnControlMouseUp(control, button)
if not isMana then return end
if (not control) or button ~= 2 then return end
@@ -167,7 +168,7 @@ function FurCDevUtility.OnControlMouseUp(control, button)
end
-function FurCDevUtility.InitRightclickMenu()
+function this.InitRightclickMenu()
if not isMana then return end
FurCDevControl_LinkHandlerBackup_OnLinkMouseUp = ZO_LinkHandler_OnLinkMouseUp
ZO_LinkHandler_OnLinkMouseUp = function(itemLink, button, control)
diff --git a/startup.lua b/startup.lua
index a4d19d1..98bc24b 100644
--- a/startup.lua
+++ b/startup.lua
@@ -1,7 +1,7 @@
FurnitureCatalogue = {}
FurnitureCatalogue.name = "FurnitureCatalogue"
FurnitureCatalogue.author = "manavortex"
-FurnitureCatalogue.version = "2.5.10"
+FurnitureCatalogue.version = "2.5.11"
FurnitureCatalogue.CharacterName = nil
FurnitureCatalogue.settings = {}