yochaigal / Cairn-FoundryVTT

Cairn for FoundryVTT!
MIT License
27 stars 24 forks source link

[Bug] Dragging an item from an actor back to itself can delete other items (Fix included) #93

Closed HeroicCookie closed 1 month ago

HeroicCookie commented 6 months ago

If you have two items in a character sheet and drag one on top of the other, it deletes the item you dragged on top of.

In the actor-sheet.js, change the _onDropItem function to include the following line after getting the item data:

if (this.actor == originalActor) return;

yochaigal commented 6 months ago

I'm not maintaining this anymore. Feel free to fork, though.

oswida commented 1 month ago

Fixed.