diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs
index 7c2d1ab8..4d0a8dbd 100644
--- a/TShockAPI/TShock.cs
+++ b/TShockAPI/TShock.cs
@@ -876,7 +876,7 @@ namespace TShockAPI
Warps.ReloadWarps();
ComputeMaxStyles();
- FixChestStacks();
+ Utils.FixChestStacks();
Utils.UpgradeMotD();
@@ -909,25 +909,6 @@ namespace TShockAPI
}
}
- /// FixChestStacks - Verifies that each stack in each chest is valid and not over the max stack count.
- private void FixChestStacks()
- {
- if (Config.IgnoreChestStacksOnLoad)
- return;
-
- foreach (Chest chest in Main.chest)
- {
- if (chest != null)
- {
- foreach (Item item in chest.item)
- {
- if (item != null && item.stack > item.maxStack)
- item.stack = item.maxStack;
- }
- }
- }
- }
-
/// LastCheck - Used to keep track of the last check for basically all time based checks.
private DateTime LastCheck = DateTime.UtcNow;
diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs
index 5081f8e4..3304acb4 100644
--- a/TShockAPI/Utils.cs
+++ b/TShockAPI/Utils.cs
@@ -1427,5 +1427,24 @@ namespace TShockAPI
}
}
}
+
+ /// FixChestStacks - Verifies that each stack in each chest is valid and not over the max stack count.
+ public void FixChestStacks()
+ {
+ if (TShock.Config.IgnoreChestStacksOnLoad)
+ return;
+
+ foreach (Chest chest in Main.chest)
+ {
+ if (chest != null)
+ {
+ foreach (Item item in chest.item)
+ {
+ if (item != null && item.stack > item.maxStack)
+ item.stack = item.maxStack;
+ }
+ }
+ }
+ }
}
}