diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index d3da94fc..d1e800ad 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -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; + /// /// Reads a configuration file from a given path /// diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1a88e796..057602fa 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -545,6 +545,9 @@ namespace TShockAPI private void FixChestStacks() { + if (Config.IgnoreChestStacksOnLoad) + return; + foreach (Chest chest in Main.chest) { if (chest != null)