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

  • Like 1
CrockettVice

Posted

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

  • Like 1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.