use array.Empty<byte>

This commit is contained in:
UbitUmarov
2022-03-12 15:21:24 +00:00
parent 5ffa1801d8
commit e043d8a2eb
45 changed files with 100 additions and 103 deletions

View File

@@ -113,7 +113,7 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
int width, int height, bool usetex)
{
if (!m_Enabled)
return new Byte[0];
return Array.Empty<byte>();
using (Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width, height, usetex))
{