I promise this sort of fixes some of the issues!
This commit is contained in:
parent
5a7f5414cd
commit
940341e7bb
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue