lots of little stuff, but mostly bank optimization, due to the weirdness of the calls
This commit is contained in:
parent
566de1c2cf
commit
f95101c201
29 changed files with 214 additions and 282 deletions
|
|
@ -400,9 +400,11 @@ namespace Server.Engines.Plants
|
|||
}
|
||||
}
|
||||
|
||||
if ( from.BankBox != null )
|
||||
BankBox bank = from.FindBankNoCreate();
|
||||
|
||||
if ( bank != null )
|
||||
{
|
||||
Item[] plants = from.BankBox.FindItemsByType( typeof( PlantItem ) );
|
||||
Item[] plants = bank.FindItemsByType( typeof( PlantItem ) );
|
||||
|
||||
foreach ( PlantItem plant in plants )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue