RekkasGit / E3Next

10 stars 19 forks source link

Fix looting/destroying items #219

Closed DatBear closed 5 months ago

DatBear commented 5 months ago

Currently there is a chance to destroy the incorrect item if it is clicked before an item that's supposed to be getting destroyed is clicked during looting.

This adds a check to make sure the cursor id matches the id of the item that's supposed to be destroyed. It also clears the cursor before looting, or if the item on the cursor doesn't match what we're trying to destroy.

I'm pretty sure it destroyed an item of mine earlier without this change, with this change I wasn't able to get it to destroy an incorrect item.