yochaigal / Cairn-FoundryVTT

Cairn for FoundryVTT!
MIT License
26 stars 22 forks source link

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

Open HeroicCookie opened 4 months ago

HeroicCookie commented 4 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 4 months ago

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