Jump to content

Not compiling after Server update!

Closed 3.4.10 3.4.11

VENIQQ
VENIQQ

Posted

Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3712, Pos: 46

RustCore

Posted

Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3717, Pos: 46

 

TacTicToe

Posted

RaidProtection - Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3707, Pos: 46

TacTicToe

Posted

Fixed it myself, till official update. 

VENIQQ

Posted

Ok, I've commented out line 3712 and replaced with return null;
Tugboat protection doesn't work anyway so don't need that.

Here is my quick "fix" if anyone interested
 

public override List<Item> InventoryItemList
            {
                get
                {
                    return null; // this is added
                    //return Driver?.inventory.AllItems().ToList() ?? new List<Item>();
                }
            }

 

WavyDankk

Posted

53 minutes ago, VENIQQ said:

Ok, I've commented out line 3712 and replaced with return null;
Tugboat protection doesn't work anyway so don't need that.

Here is my quick "fix" if anyone interested
 

public override List<Item> InventoryItemList
            {
                get
                {
                    return null; // this is added
                    //return Driver?.inventory.AllItems().ToList() ?? new List<Item>();
                }
            }

 

Thank you!! 🙂

Grannville

Posted

1 hour ago, VENIQQ said:

Ok, I've commented out line 3712 and replaced with return null;
Tugboat protection doesn't work anyway so don't need that.

Here is my quick "fix" if anyone interested
 

public override List<Item> InventoryItemList
            {
                get
                {
                    return null; // this is added
                    //return Driver?.inventory.AllItems().ToList() ?? new List<Item>();
                }
            }

 

thanks for the fix

Mr01sam

Posted

Changed Status from Pending to Closed

Changed Fixed In to 3.4.11

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.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.8k
Marketplace sales
Payments
3.3m
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.