Issues with MTD warning
AcidWeb opened this issue ยท 5 comments
I didn't have time to debug it thoroughly but something causing db.global.mdtAlertShown
to reset to default state and MTD warning appear way more than once.
Thanks for the report, I'll look into it as soon as I get back into the game, which will be soon.
Do you have any idea how I could reproduce this?
Not really. Just don't have MDT installed and sooner or later
["global"] = {
["mdtAlertShown"] = true,
},
will disappear from SV file.
OK I just took a quick look. There is logic error in: https://github.com/happenslol/WarpDeplete/blob/main/Core.lua#L93
First time when this code executes that if looks like this: if not false and not false then
so popup is show and and mdtAlertShown
is set to true
.
Second time that if looks like this: if not true and not false then
so else
got executed and mdtAlertShown
is set to false
.
So third execution show the popup again...
Yeah, I see the logic error there. I'll take care of it later today. Thanks for digging into it!