From a8ce4e511ec5ec14a3a97f87cb925d737a95f0c2 Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Sun, 31 Mar 2013 19:41:23 -0400 Subject: [PATCH] Added fix to override chest stack size checks at startup. --- TShockAPI/ConfigFile.cs | 2 ++ TShockAPI/TShock.cs | 3 +++ 2 files changed, 5 insertions(+) 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)