better pfUI detection try to fix #3

This commit is contained in:
LaYt
2017-11-16 15:35:15 +07:00
committed by GitHub
parent f016dbdff8
commit bb213e8a31
+1 -1
View File
@@ -150,7 +150,7 @@ function RecipeRadar_Minimap_GetPosition(offs_x, offs_y, scale_x, scale_y)
local mapWidth = Minimap:GetWidth()/2;
local mapHeight = Minimap:GetHeight()/2;
if (Squeenix or (simpleMinimap_Skins and simpleMinimap_Skins:GetShape() == "square")
or (pfUI and pfUI_config["disabled"]["minimap"] ~= "1")) then
or (pfUI and pfUI.minimap)) then
if (math.abs(map_x) > mapWidth) then
map_x = (mapWidth)*((map_x<0 and -1) or 1);
end