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

@ -1263,7 +1263,7 @@ namespace TShockAPI
return true; return true;
} }
if (TShock.CheckTilePermission(args.Player, tileX, tileY, tiletype)) if (TShock.CheckTilePermission(args.Player, tileX, tileY, tiletype, type))
{ {
args.Player.SendTileSquare(tileX, tileY); args.Player.SendTileSquare(tileX, tileY);
return true; return true;

View file

@ -1086,11 +1086,11 @@ namespace TShockAPI
return false; 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 (!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) foreach (Point p in player.IceTiles)
{ {