From 428ee68b864ab87d49ae67c19e5786d3298113c6 Mon Sep 17 00:00:00 2001 From: MarioE Date: Sat, 5 Oct 2013 18:22:05 -0400 Subject: [PATCH] Up the default TilePaintThreshold and fix one last typo --- TShockAPI/ConfigFile.cs | 2 +- TShockAPI/GetDataHandlers.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index d17f6ad9..1fc229a1 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -277,7 +277,7 @@ namespace TShockAPI [Description("The number of seconds a player must wait before being respawned.")] public int RespawnSeconds = 3; - [Description("Disables a player if this number of tiles is painted within 1 second.")] public int TilePaintThreshold = 10; + [Description("Disables a player if this number of tiles is painted within 1 second.")] public int TilePaintThreshold = 15; /// /// Reads a configuration file from a given path diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index dfea3738..39bb93c4 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3255,7 +3255,7 @@ namespace TShockAPI } // Not selecting paint roller or paint scraper or the spectre versions? Hacking. - if (args.Player.SelectedItem.type != 1071 && args.Player.SelectedItem.type != 1100 && + if (args.Player.SelectedItem.type != 1072 && args.Player.SelectedItem.type != 1100 && args.Player.SelectedItem.type != 1544 && args.Player.SelectedItem.type != 1545) { args.Player.SendData(PacketTypes.PaintWall, "", x, y, Main.tile[x, y].wallColor());