fix(core): Fixes nullables being disabled (#466)

This commit is contained in:
Kamron Batman 2021-02-05 14:09:57 -08:00 committed by GitHub
parent 657233b2eb
commit 079eeb1b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

@ -375,7 +375,7 @@ namespace Server.Buffers
ArrayPool<char>.Shared.Return(toReturn);
}
}
#nullable disable
#nullable restore
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void ReplaceAny(ReadOnlySpan<char> oldChars, ReadOnlySpan<char> newChars, int startIndex, int count)

View file

@ -535,7 +535,7 @@ namespace Server.Collections
++_version;
return actualIndex;
}
#nullable disable
#nullable restore
// Returns the index of the next entry in the bucket
[MethodImpl(MethodImplOptions.AggressiveInlining)]

View file

@ -2442,7 +2442,7 @@ namespace Server
ClearProperties();
}
}
#nullable disable
#nullable restore
public virtual int GetPacketFlags()
{

View file

@ -40,7 +40,7 @@ namespace Server
private static TimeSpan _profileTime;
#nullable enable
private static bool? _isRunningFromXUnit;
#nullable disable
#nullable restore
private static int _itemCount;
private static int _mobileCount;
@ -80,7 +80,7 @@ namespace Server
return false;
}
}
#nullable disable
#nullable restore
public static bool Profiling
{

View file

@ -7445,7 +7445,7 @@ namespace Server
ClearProperties();
}
}
#nullable disable
#nullable restore
public virtual void SetLocation(Point3D newLocation, bool isTeleport)
{

View file

@ -30,7 +30,7 @@ namespace Server.Commands
[JsonPropertyName("hue")]
public int? Hue { get; set; }
#nullable disable
#nullable restore
public CAGCategory Parent { get; set; }