mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Buff UI -> Clear buff data on error
This commit is contained in:
@@ -256,6 +256,7 @@ function this.update_generic_buff(buff_list, filter_list, get_name_function,
|
||||
|
||||
if value == nil then
|
||||
error_handler.report("buffs.update_generic_number", string.format("Failed to access Data: %s_value", buff_key));
|
||||
buff_list[buff_key] = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
@@ -292,6 +293,7 @@ function this.update_generic_buff(buff_list, filter_list, get_name_function,
|
||||
|
||||
if timer == nil then
|
||||
error_handler.report("buffs.update_generic_number", string.format("Failed to access Data: %s_timer", buff_key));
|
||||
buff_list[buff_key] = nil;
|
||||
return;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user