Getting there
This commit is contained in:
parent
940341e7bb
commit
5f31937af7
1 changed files with 10 additions and 8 deletions
|
|
@ -1103,18 +1103,20 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TShock.Config.AllowIce && tileType == 127)
|
if (TShock.Config.AllowIce)
|
||||||
|
{
|
||||||
|
if (tileType == 127)
|
||||||
{
|
{
|
||||||
player.IceTiles.Add(new Point(tileX, tileY));
|
player.IceTiles.Add(new Point(tileX, tileY));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
|
||||||
player.SendMessage("You do not have permission to build!", Color.Red);
|
player.SendMessage("You do not have permission to build!", Color.Red);
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!player.Group.HasPermission(Permissions.editspawn) && !Regions.CanBuild(tileX, tileY, player) &&
|
if (!player.Group.HasPermission(Permissions.editspawn) && !Regions.CanBuild(tileX, tileY, player) &&
|
||||||
Regions.InArea(tileX, tileY))
|
Regions.InArea(tileX, tileY))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue