From 940341e7bb78892c1f3e1f9cd4e99fff85a6f75d Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 20 Jan 2012 23:40:34 -0700 Subject: [PATCH] I promise this sort of fixes some of the issues! --- TShockAPI/GetDataHandlers.cs | 2 +- TShockAPI/TShock.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 7950bb72..3d5690c4 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1263,7 +1263,7 @@ namespace TShockAPI return true; } - if (TShock.CheckTilePermission(args.Player, tileX, tileY, tiletype)) + if (TShock.CheckTilePermission(args.Player, tileX, tileY, tiletype, type)) { args.Player.SendTileSquare(tileX, tileY); return true; diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 9b1d2226..71ea1c98 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1086,11 +1086,11 @@ namespace TShockAPI return false; } - public static bool CheckTilePermission( TSPlayer player, int tileX, int tileY, byte tileType ) + public static bool CheckTilePermission( TSPlayer player, int tileX, int tileY, byte tileType, byte actionType ) { if (!player.Group.HasPermission(Permissions.canbuild)) { - if (TShock.Config.AllowIce && tileType == 0) + if (TShock.Config.AllowIce && tileType == 0 && (actionType != 1 || actionType != 3)) { foreach (Point p in player.IceTiles) {