From c7711b29067ccee1af44cdd36d05227985b4fb4b Mon Sep 17 00:00:00 2001 From: White Date: Sat, 25 Jul 2015 13:06:21 +0930 Subject: [PATCH] Allow[Hallow/Corruption/Crimson]Creep in config now work Fixes #1043 --- TShockAPI/TShock.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 9b56a7c9..cc1ce200 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -33,10 +33,10 @@ using MySql.Data.MySqlClient; using Newtonsoft.Json; using Rests; using Terraria; +using Terraria.ID; using TerrariaApi.Server; using TShockAPI.DB; using TShockAPI.Hooks; -using TShockAPI.Net; using TShockAPI.ServerSideCharacters; namespace TShockAPI @@ -1023,23 +1023,22 @@ namespace TShockAPI { if (args.Handled) return; - - if (!Config.AllowCrimsonCreep && (args.Type == 0 || args.Type == 199 || args.Type == 200 || args.Type == 203 - || args.Type == 234)) + + if (!Config.AllowCrimsonCreep && (args.Type == TileID.Dirt || args.Type == TileID.FleshWeeds + || TileID.Sets.Crimson[args.Type])) { args.Handled = true; return; } - if (!Config.AllowCorruptionCreep && (args.Type == 23 || args.Type == 25 || args.Type == 0 || - args.Type == 112 || args.Type == 32)) + if (!Config.AllowCorruptionCreep && (args.Type == TileID.Dirt || args.Type == TileID.CorruptThorns + || TileID.Sets.Corrupt[args.Type])) { args.Handled = true; return; } - if (!Config.AllowHallowCreep && (args.Type == 109 || args.Type == 117 || args.Type == 116 || args.Type == 115 - || args.Type == 164)) + if (!Config.AllowHallowCreep && (TileID.Sets.Hallow[args.Type])) { args.Handled = true; }