diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 794cd2779..a885cad66 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -228,6 +228,8 @@ public class ConfigFile [Description("Prevent banned items from being /i or /give")] public bool PreventBannedItemSpawn = false; + [Description("Prevent banks on SSI")] public bool PreventPiggyBanksOnServerSideInventory = false; + public static ConfigFile Read(string path) { if (!File.Exists(path)) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 3879eb474..a56e7d90a 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1682,7 +1682,7 @@ private static bool HandleTile(GetDataHandlerArgs args) { return true; } - if ((tiletype == 29 || tiletype == 97) && TShock.Config.ServerSideInventory) + if ((tiletype == 29 || tiletype == 97) && TShock.Config.ServerSideInventory && TShock.Config.PreventPiggyBanksOnServerSideInventory) { args.Player.SendMessage("You cannot place this tile, server side inventory is enabled.", Color.Red); args.Player.SendTileSquare(tileX, tileY);