Project-Diablo-2 / BH

A modified version of slashdiablo's BH for Project Diablo 2
GNU Affero General Public License v3.0
24 stars 20 forks source link

Fix blank items names when traveling through portal/waypoint #36

Closed xkanzeon closed 5 months ago

xkanzeon commented 6 months ago

The map ID that's used currently isn't updated before items are displayed, which sometimes results in MAPID-using rules matching erroneously (particularly when using portals/waypoints). With most filters' implementations of the condition, this gave the item an actual name and therefore the invisible flag wasn't being applied. This combined with the name being cached as empty caused the now-visible item to have an empty nameplate.

While I'll fully admit that I don't know why the multiple methods of getting a map ID exist simultaneously, this switch does seem to update on time, so I won't ask too many questions.