fantasycalendar / FoundryVTT-ItemPiles

Other
33 stars 54 forks source link

[BUG] - [D&D 5e (probably system independent)] - Item pile data resets upon token update #594

Closed Saibot393 closed 3 months ago

Saibot393 commented 3 months ago

Are you on the latest version of Item Piles? Yes

Have you tried to reset Item Piles' system settings? No

Describe the bug When changing the token settings of an item pile (e.g. the name, though any setting seems to work), the item pile data gets reset and the token is no longer an item pile. (tokendocument.flags.item-piles.data is set to null)

To Reproduce Steps to reproduce the behavior:

  1. Create a new item pile token via drag and drop
  2. Go into the newly created tokens setting and change any setting (e.g. name) and save the change(s)
  3. The item pile data will have reset to null

Expected behavior For item pile settings not to reset when updating any token data field

Setup:

Active modules:

Haxxer commented 3 months ago

Fixed in 3.0.6