From 091867596568d108a8144bd123f3c9fde880b17c Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 21 Jan 2012 00:23:53 -0700 Subject: [PATCH] Is the debug code just not being called then? --- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- TShockAPI/TShock.cs | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 668f2082..4e4c4073 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -48,5 +48,5 @@ using System.Runtime.InteropServices; // Build Number // MMdd of the build -[assembly: AssemblyVersion("3.4.5.0120")] -[assembly: AssemblyFileVersion("3.4.5.0120")] +[assembly: AssemblyVersion("3.4.5.0121")] +[assembly: AssemblyFileVersion("3.4.5.0121")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 552d7548..e9e515b5 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1090,13 +1090,15 @@ namespace TShockAPI { if (!player.Group.HasPermission(Permissions.canbuild)) { - if (TShock.Config.AllowIce && tileType == 0 && (actionType != 1 || actionType != 3)) + if (TShock.Config.AllowIce && actionType != 1) { foreach (Point p in player.IceTiles) { - if (p.X == tileX && p.Y == tileY) + if (p.X == tileX && p.Y == tileY && (tileType == 0 || tileType == 127)) { player.IceTiles.Remove(p); + player.SendMessage("Removing IceTile: " + p.X + ", " + p.Y); + player.SendMessage("IceTile size: " + player.IceTiles.Count); return false; } } @@ -1104,11 +1106,12 @@ namespace TShockAPI return true; } - if (TShock.Config.AllowIce) + if (TShock.Config.AllowIce && actionType == 1) { if (tileType == 127) { player.IceTiles.Add(new Point(tileX, tileY)); + player.SendMessage("Added new IceTile: " + tileX + ", " + tileY); return false; } }