Error while compiling FurnaceSplitter From last wipe by loading Mod
Error while compiling FurnaceSplitter: 'PlayerInventory' does not contain a definition for 'GetComponent' and no accessible extension method 'GetComponent' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 305, Pos: 43
Error while compiling FurnaceSplitter From last wipe by loading Mod
OH I see it to late sry:
Quick fix until it's updated if your happy to fiddle. In the .cs file, replace line 305, which should say
BasePlayer player = inventory.GetComponent<BasePlayer>();
with the following:
BasePlayer player = inventory.containerMain?.playerOwner;
Thannks
is it still not compiling after todays server update?M4nStop
OH I see it to late sry:
Quick fix until it's updated if your happy to fiddle. In the .cs file, replace line 305, which should say
BasePlayer player = inventory.GetComponent<BasePlayer>();
with the following:
BasePlayer player = inventory.containerMain?.playerOwner;
Thannks
M4nStop
OH I see it to late sry:
Quick fix until it's updated if your happy to fiddle. In the .cs file, replace line 305, which should say
BasePlayer player = inventory.GetComponent<BasePlayer>();
with the following:
BasePlayer player = inventory.containerMain?.playerOwner;
Thannks
So after the latest server patches today both code version of that section are working and compiling and shows no errors in VS as well for me on my test server still but I updated the plugin with your fix and posted to be safe