Fix for the CheckInteractDistance() error

This commit is contained in:
Tercio Jose
2023-11-20 18:30:34 -03:00
parent 90746e8567
commit 22483cb77c
4 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -13,8 +13,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()
Details.build_counter = 12043
Details.alpha_build_counter = 12043 --if this is higher than the regular counter, use it instead
Details.build_counter = 12044
Details.alpha_build_counter = 12044 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
+1
View File
@@ -3161,6 +3161,7 @@ end)
--game freeze prevention, there are people calling UpdateAddOnMemoryUsage() making the game client on the end user to freeze, this is bad, really bad.
--Details! replace the function call with one that do the same thing, but warns the player if the function freezes the client too many times.
--this feature is disabled by default, to enable it, type /run Details.check_stuttering = true and reload the game
local stutterCounter = 0
local bigStutterCounter = 0
local UpdateAddOnMemoryUsage_Original = _G.UpdateAddOnMemoryUsage
+1 -1
View File
@@ -1387,7 +1387,7 @@ local default_global_data = {
merge_player_abilities = false,
played_class_time = true,
check_stuttering = true,
check_stuttering = false,
--[bossname] = texture
boss_icon_cache = {},
+1
View File
@@ -616,6 +616,7 @@ function Details:StartMeUp()
--to ignore this, use /run _G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Original or add to any script that run on login
--also the slash command "/details stopperfcheck" stop it as well
Details.check_stuttering = false
if (Details.check_stuttering) then
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Custom
end