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

Add chest location when throw an exception. #59

Open
tanpro260196 opened this issue Jun 16, 2017 · 1 comment
Open

Add chest location when throw an exception. #59

tanpro260196 opened this issue Jun 16, 2017 · 1 comment

Comments

@tanpro260196
Copy link

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.

@CoderCow CoderCow added the bug label Jun 16, 2017
@CoderCow
Copy link
Member

Looks like a bug preventing chests from being locked again when someone took items out and their refill timer expired.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants