Added fix to override chest stack size checks at startup.

This commit is contained in:
Zack Piispanen 2013-03-31 19:41:23 -04:00
parent 1a6a662834
commit a8ce4e511e
2 changed files with 5 additions and 0 deletions

View file

@ -247,6 +247,8 @@ namespace TShockAPI
[Description("Allows groups on the banned item allowed list to spawn banned items.")] public bool AllowAllowedGroupsToSpawnBannedItems = false;
[Description("Allows stacks in chests to be beyond the stack limit")] public bool IgnoreChestStacksOnLoad = false;
/// <summary>
/// Reads a configuration file from a given path
/// </summary>

View file

@ -545,6 +545,9 @@ namespace TShockAPI
private void FixChestStacks()
{
if (Config.IgnoreChestStacksOnLoad)
return;
foreach (Chest chest in Main.chest)
{
if (chest != null)