Broken with November 2025 update

Error

11/06 2:18:27 PM | Failed compiling 'PreventLooting.cs':
11/06 2:18:27 PM | 1. 'HashSet<ulong>' does not contain a definition for 'Any' and the best extension method overload 'ParallelEnumerable.Any<PlayerNameID>(ParallelQuery<PlayerNameID>, Func<PlayerNameID, bool>)' requires a receiver of type 'System.Linq.ParallelQuery<ProtoBuf.PlayerNameID>' [CS1929]
(PreventLooting 51 line 678)​

[Error] Error while compiling PreventLooting: 'HashSet<ulong>' does not contain a definition for 'Any' and the best extension method overload 'ParallelEnumerable.Any<PlayerNameID>(ParallelQuery<PlayerNameID>, Func<PlayerNameID, bool>)' requires a receiver of type 'System.Linq.ParallelQuery<ProtoBuf.PlayerNameID>' | Line: 678, Pos: 51

Same as me:

Error while compiling PreventLooting: 'HashSet' does not contain a definition for 'Any' and the best extension method overload 'ParallelEnumerable.Any(ParallelQuery, Func<playernameid, bool="">)' requires a receiver of type 'System.Linq.ParallelQuery' | Line: 678, Pos: 51</playernameid,>

search for

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x.userid == ownerid)) returntrue;

replace with

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) returntrue;

iwRyPtY27GN8mCT.png MadDom

search for

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x.userid == ownerid)) returntrue;

replace with

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) returntrue;

I didn't find that line when I searched for it with Notepad++

zyKB3ks55YR42VF.png MadDom

search for

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x.userid == ownerid)) returntrue;

replace with

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) returntrue;

Watch the syntax:

if (bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) return true;
hqroim8Msfq2wXh.jpg DrDBug

Watch the syntax:

if (bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) return true;

I'm copying and pasting that directly into the search for Notepad++ and it's not being found. Is there a line number?



Merged post

Ok, I found it line 678 and it seems to load now.

Disregard this reply.

pdKbxp8Mw7y95Ig.png MadDom

search for

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x.userid == ownerid)) returntrue;

replace with

if(bprev.IsAuthed(player) && bprev.authorizedPlayers.Any(x => x == ownerid)) returntrue;

if (bprev.IsAuthed(player) && bprev.authorizedPlayers.Contains(ownerid)) return true;

Look at Line 678

Thanks