public void OnSpawnServer(SpawnInfo info) { Logger.LogTraceFormat("Spawning {0}", Category.ItemSpawn, GetInstanceID()); InitStacksWith(); SyncAmount(amount, initialAmount); amountInit = true; //check for stacking with things on the ground registerTile.WaitForMatrixInit(OnMatrixInit); }
public override void OnStartServer() { itemSlot = itemStorage.GetIndexedItemSlot(0); securable.OnAnchoredChange.AddListener(OnSecuredChanged); registerTile.WaitForMatrixInit(CheckStartingPlasma); }