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 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>
|
/// <summary>
|
||||||
/// Reads a configuration file from a given path
|
/// Reads a configuration file from a given path
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -545,6 +545,9 @@ namespace TShockAPI
|
||||||
|
|
||||||
private void FixChestStacks()
|
private void FixChestStacks()
|
||||||
{
|
{
|
||||||
|
if (Config.IgnoreChestStacksOnLoad)
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (Chest chest in Main.chest)
|
foreach (Chest chest in Main.chest)
|
||||||
{
|
{
|
||||||
if (chest != null)
|
if (chest != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue