Fix for the CheckInteractDistance() error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user