Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Add chest location when throw an exception. #59

@tanpro260196

Description

@tanpro260196

I don't know why but when I use the mass-refill command, this exception always show up after a while:
[Protector] A timer's callback has thrown an exception. Excpetion details: Terraria.Plugins.Common.InvalidChestStyleException: Chest has to be a lockable chest. at Terraria.Plugins.Common.TerrariaTiles.LockChest(Point anyChestTileLocation) at Terraria.Plugins.CoderCow.Protector.ChestManager.TryRefillChest(IChest chest, RefillChestMetadata refillChestData) at Terraria.Plugins.CoderCow.Protector.ChestManager.TryRefillChest(Point chestLocation, RefillChestMetadata refillChestData) at Terraria.Plugins.CoderCow.Protector.ChestManager.RefillChestTimer_Callback(TimerBase timer) at Terraria.Plugins.Common.TimerManager.InvokeTimerCallback(TimerBase timer)

All I do is set refill and auto-lock on Dungeon and Hell chest, so it's not suppose to thrown this exception.
More importantly, can you add the location of the error chest in the exception message? Really help a lot in tracking down the broken chest.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions