Plugin broken after update

Failed compiling 'FurnaceSplitter.cs':
1. '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?) [CS1061]
(FurnaceSplitter 43 line 305)

seconded

Third

Replace "BasePlayer player = inventory.GetComponent<BasePlayer>();" with "BasePlayer player = inventory.baseEntity;"

6qTbv7hGBYxfSGN.jpg Terceran

Replace "BasePlayer player = inventory.GetComponent<BasePlayer>();" with "BasePlayer player = inventory.baseEntity;"

Thanks, it works

6qTbv7hGBYxfSGN.jpg Terceran

Replace "BasePlayer player = inventory.GetComponent<BasePlayer>();" with "BasePlayer player = inventory.baseEntity;"

thx, works

Nice, cheers

BasePlayer player = inventory.GetComponent<BasePlayer>();
if (player == null)
return null;

Подскажите как правильно изменить?

Merged post

Всё) разобралась)

s4OJkiQbbunBsrX.png Pressy

thx, works

BasePlayer player = inventory.containerMain?.playerOwner; should work as well about to update