Added fix to override chest stack size checks at startup.
This commit is contained in:
parent
1a6a662834
commit
a8ce4e511e
2 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -545,6 +545,9 @@ namespace TShockAPI
|
|||
|
||||
private void FixChestStacks()
|
||||
{
|
||||
if (Config.IgnoreChestStacksOnLoad)
|
||||
return;
|
||||
|
||||
foreach (Chest chest in Main.chest)
|
||||
{
|
||||
if (chest != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue