I promise this sort of fixes some of the issues!

This commit is contained in:
Lucas Nicodemus 2012-01-20 23:40:34 -07:00
parent 5a7f5414cd
commit 940341e7bb
2 changed files with 3 additions and 3 deletions

View file

@ -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)
{