Skip to content

Commit

Permalink
[PR] VoidList and Whitelist namecheck fixes
Browse files Browse the repository at this point in the history
- Fixes incorrect check for names in VoidList and Whitelist
  • Loading branch information
SheepGoMeh authored Aug 7, 2024
2 parents e05e9be + ee9ca8d commit f8109fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Visibility/Utils/FrameworkHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private unsafe void PlayerHandler(Character* characterPtr, Character* localPlaye
if (!this.checkedVoidedObjectIds.ContainsKey(characterPtr->GameObject.EntityId))
{
VoidItem? voidedPlayer = VisibilityPlugin.Instance.Configuration.VoidList.Find(
x => characterPtr->GameObject.Name.SequenceEqual(x.NameBytes) &&
x => characterPtr->GameObject.Name.StartsWith(x.NameBytes) &&
x.HomeworldId == characterPtr->HomeWorld);

if (voidedPlayer != null)
Expand Down Expand Up @@ -286,7 +286,7 @@ private unsafe void PlayerHandler(Character* characterPtr, Character* localPlaye
if (!this.checkedWhitelistedObjectIds.ContainsKey(characterPtr->GameObject.EntityId))
{
VoidItem? whitelistedPlayer = VisibilityPlugin.Instance.Configuration.Whitelist.Find(
x => characterPtr->GameObject.Name.SequenceEqual(x.NameBytes) &&
x => characterPtr->GameObject.Name.StartsWith(x.NameBytes) &&
x.HomeworldId == characterPtr->HomeWorld);

if (whitelistedPlayer != null)
Expand Down
2 changes: 1 addition & 1 deletion Visibility/Visibility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LangVersion>default</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<AssemblyVersion>1.1.7.3</AssemblyVersion>
<AssemblyVersion>1.1.7.4</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<IsPackable>false</IsPackable>
<Authors>SheepGoMeh</Authors>
Expand Down

0 comments on commit f8109fd

Please sign in to comment.