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)
Plugin broken after update
seconded
Third
Replace "BasePlayer player = inventory.GetComponent<BasePlayer>();" with "BasePlayer player = inventory.baseEntity;"
Terceran
Replace "BasePlayer player = inventory.GetComponent<BasePlayer>();" with "BasePlayer player = inventory.baseEntity;"
Thanks, it works
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
Всё) разобралась)
Pressy
thx, works
BasePlayer player = inventory.containerMain?.playerOwner; should work as well about to update