Skip to content

Commit

Permalink
Add PreventPiggyBanksOnServerSideInventory config opion
Browse files Browse the repository at this point in the history
  • Loading branch information
hakusaro committed May 26, 2012
1 parent 030f4ab commit 36f368a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions TShockAPI/ConfigFile.cs
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion TShockAPI/GetDataHandlers.cs
Expand Up @@ -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);
Expand Down

0 comments on commit 36f368a

Please sign in to comment.