BinaryConstruct/Terraria-Map-Editor — Issue #191: Treasure Chest Contents Being Wiped Under Various Circumstances
Author: Alphanos
Created: 2012-01-02 17:07:32+00:00
State: open

I've noticed that treasure chest contents are being wiped under several different circumstances, in order from least to most severe:

1) If a chest is copied and pasted, the pasted version will have no contents.

2) If a chest is accidentally deleted during other edits, and that deletion is undone (with Undo), the replaced chest will have no contents (!).

3) If painting with the brush over a chest area using a mask to avoid doing anything to the chest, the chest's contents will still be cleared (!!). In my case I decided to change my world's dungeon from green to blue dungeon bricks using a brush masked to only edit dungeon tiles. I didn't realize until far later that this had completely cleared the contents of all chests in my dungeon. Since this is an editor I can always add new contents or place dungeon-unique items elsewhere, but I'm fairly sure this must be an unintentional aspect of brush masking.

I did notice that another issue is open regarding chest contents not being saved into exported schematic files, but given the other scenarios I've noticed, I suspect that is simply a side effect of other chest handling code.