Jump to content

Error while compiling BetterVanish: 'Pool' does not contain a definition for 'GetList' | Line: 682, Pos: 33

Pending 1.7.4

DaddyRex
DaddyRex

Posted

Error while compiling BetterVanish: 'Pool' does not contain a definition for 'GetList' | Line: 682, Pos: 33

DaddyRex

Posted

i have found a fix for this. Starting on line 682, replace the entire bracket.

replace this:

            {
                var hits = Pool.GetList<RaycastHit>();
                GamePhysics.TraceAll(player.eyes.HeadRay(), .1f, hits, 5f, Layers.Server.Players);
                var hit = hits.FirstOrDefault(h => h.collider.gameObject != player.gameObject);
                if (hit.collider != null)
                    target = hit.transform.ToBaseEntity().ToPlayer();
                Pool.FreeList(ref hits);
            }

 

with this:

 

            {
                var hits = Pool.Get<List<RaycastHit>>();
                GamePhysics.TraceAll(player.eyes.HeadRay(), .1f, hits, 5f, Layers.Server.Players);
                var hit = hits.FirstOrDefault(h => h.collider.gameObject != player.gameObject);
                
                if (hit.collider != null)
                    target = hit.transform.ToBaseEntity().ToPlayer();
                Pool.FreeUnmanaged(ref hits);

              }

 

reload plugin- should work fine

CrockettVice

Posted

You sir, are a gentleman and a scholar.  😃  Thank you so much!

  • Like 1
2.3m

Downloads

Total number of downloads.

10.6k

Customers

Total customers served.

153k

Files Sold

Total number of files sold.

3.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.