Fixed many warnings, moved some classes to their own files.
This commit is contained in:
@@ -95,7 +95,7 @@ internal class ContextMenuService : IHostedService
|
||||
|
||||
//Check if it is a real target.
|
||||
IPlayerCharacter? targetData = GetPlayerFromObjectTable(target);
|
||||
if (targetData == null || targetData.Address == nint.Zero)
|
||||
if (targetData == null || targetData.Address == nint.Zero || _clientState.LocalPlayer == null)
|
||||
return;
|
||||
|
||||
//Check if user is directly paired or is own.
|
||||
@@ -120,7 +120,7 @@ internal class ContextMenuService : IHostedService
|
||||
PrefixChar = 'L',
|
||||
UseDefaultPrefix = false,
|
||||
PrefixColor = 708,
|
||||
OnClicked = async _ => await HandleSelection(args).ConfigureAwait(false)
|
||||
OnClicked = _ => HandleSelection(args).ConfigureAwait(false).GetAwaiter().GetResult()
|
||||
});
|
||||
}
|
||||
|
||||
@@ -200,8 +200,6 @@ internal class ContextMenuService : IHostedService
|
||||
|
||||
private static bool IsChineseJapaneseKoreanCharacter(char c) => c >= 0x4E00 && c <= 0x9FFF;
|
||||
|
||||
public bool IsWorldValid(uint worldId) => IsWorldValid(GetWorld(worldId));
|
||||
|
||||
public static bool IsWorldValid(World world)
|
||||
{
|
||||
var name = world.Name.ToString();
|
||||
|
||||
Reference in New Issue
Block a user