Dont update buffs if buff UI is disabled

This commit is contained in:
GreenComfyTea
2023-08-08 13:05:05 +03:00
parent e09c82278d
commit 26966818b3

View File

@@ -113,6 +113,10 @@ function this.init_names()
end
function this.update()
if not config.current_config.buff_UI.enabled then
return;
end
if singletons.player_manager == nil then
error_handler.report("buffs.update", "Failed to access Data: player_manager");
return;